Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsonapi_search_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jsonapi_search_api
Merge requests
!5
Fixed array to string conversion notice
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed array to string conversion notice
issue/jsonapi_search_api-3273045:3273045-notice-array-to
into
8.x-1.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Octavian Belu
requested to merge
issue/jsonapi_search_api-3273045:3273045-notice-array-to
into
8.x-1.x
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#3273045
0
0
Merge request reports
Compare
8.x-1.x
version 1
be094894
1 year ago
8.x-1.x (base)
and
latest version
latest version
30001539
1 commit,
1 month ago
version 1
be094894
1 commit,
1 year ago
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/jsonapi_search_api_facets/src/Plugin/facets/url_processor/JsonApiQueryString.php
+
1
−
1
Options
@@ -201,7 +201,7 @@ class JsonApiQueryString extends QueryString {
@@ -201,7 +201,7 @@ class JsonApiQueryString extends QueryString {
$child_ids
=
$facet
->
getHierarchyInstance
()
->
getNestedChildIds
(
$result
->
getRawValue
());
$child_ids
=
$facet
->
getHierarchyInstance
()
->
getNestedChildIds
(
$result
->
getRawValue
());
$parents_and_child_ids
=
array_merge
(
$parent_ids
,
$child_ids
);
$parents_and_child_ids
=
array_merge
(
$parent_ids
,
$child_ids
);
foreach
(
$parents_and_child_ids
as
$id
)
{
foreach
(
$parents_and_child_ids
as
$id
)
{
$filter_params
=
array_diff
(
$filter_params
,
[
$id
]);
$filter_params
[
$this
->
urlAlias
]
=
array_diff
(
$filter_params
[
$this
->
urlAlias
]
,
[
$id
]);
}
}
}
}
// Exclude currently active results from the filter params if we are in
// Exclude currently active results from the filter params if we are in
Loading