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
68666a1e
Commit
68666a1e
authored
Jan 29, 2014
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for boolean values in update query documents
parent
f59693a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
library/Solarium/QueryType/Update/RequestBuilder.php
library/Solarium/QueryType/Update/RequestBuilder.php
+5
-0
No files found.
library/Solarium/QueryType/Update/RequestBuilder.php
View file @
68666a1e
...
...
@@ -171,7 +171,12 @@ class RequestBuilder extends BaseRequestBuilder
$xml
.=
$this
->
attrib
(
'update'
,
$modifier
);
if
(
$value
===
null
)
{
$xml
.=
$this
->
attrib
(
'null'
,
'true'
);
}
else
if
(
$value
===
false
)
{
$value
=
'false'
;
}
else
if
(
$value
===
true
)
{
$value
=
'true'
;
}
$xml
.=
'>'
.
htmlspecialchars
(
$value
,
ENT_NOQUOTES
,
'UTF-8'
);
$xml
.=
'</field>'
;
...
...
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