Merge pull request #1097 from TorstenDittmann/fix-false-boolean-properties
fix: save false values in database for filtering
This commit is contained in:
commit
b0cb7a9b8d
1 changed files with 3 additions and 0 deletions
|
@ -283,6 +283,9 @@ class MySQL extends Adapter
|
||||||
if (\is_array($prop['value'])) {
|
if (\is_array($prop['value'])) {
|
||||||
throw new Exception('Value can\'t be an array: '.\json_encode($prop['value']));
|
throw new Exception('Value can\'t be an array: '.\json_encode($prop['value']));
|
||||||
}
|
}
|
||||||
|
if (\is_bool($prop['value'])) {
|
||||||
|
$prop['value'] = (int) $prop['value'];
|
||||||
|
}
|
||||||
$st2->bindValue(':documentUid', $data['$id'], PDO::PARAM_STR);
|
$st2->bindValue(':documentUid', $data['$id'], PDO::PARAM_STR);
|
||||||
$st2->bindValue(':documentRevision', $revision, PDO::PARAM_STR);
|
$st2->bindValue(':documentRevision', $revision, PDO::PARAM_STR);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue