Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
cb36040e
Commit
cb36040e
authored
Oct 28, 2016
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for comma-separated values in conversion to array
parent
48054b7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
library/Solarium/QueryType/Select/Query/Component/Facet/AbstractFacet.php
.../QueryType/Select/Query/Component/Facet/AbstractFacet.php
+1
-1
library/Solarium/QueryType/Select/Query/Query.php
library/Solarium/QueryType/Select/Query/Query.php
+1
-1
No files found.
library/Solarium/QueryType/Select/Query/Component/Facet/AbstractFacet.php
View file @
cb36040e
...
@@ -180,7 +180,7 @@ abstract class AbstractFacet extends Configurable
...
@@ -180,7 +180,7 @@ abstract class AbstractFacet extends Configurable
break
;
break
;
case
'exclude'
:
case
'exclude'
:
if
(
!
is_array
(
$value
))
{
if
(
!
is_array
(
$value
))
{
$value
=
array
(
$value
);
$value
=
explode
(
','
,
$value
);
}
}
$this
->
setExcludes
(
$value
);
$this
->
setExcludes
(
$value
);
unset
(
$this
->
options
[
'exclude'
]);
unset
(
$this
->
options
[
'exclude'
]);
...
...
library/Solarium/QueryType/Select/Query/Query.php
View file @
cb36040e
...
@@ -1090,7 +1090,7 @@ class Query extends BaseQuery
...
@@ -1090,7 +1090,7 @@ class Query extends BaseQuery
break
;
break
;
case
'tag'
:
case
'tag'
:
if
(
!
is_array
(
$value
))
{
if
(
!
is_array
(
$value
))
{
$value
=
array
(
$value
);
$value
=
explode
(
','
,
$value
);
}
}
$this
->
addTags
(
$value
);
$this
->
addTags
(
$value
);
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment