1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

fix: save false value in database for filtering

This commit is contained in:
Torsten Dittmann 2021-04-20 10:05:09 +02:00
parent c6af32fb57
commit f40f82f91e

View file

@ -283,6 +283,9 @@ class MySQL extends Adapter
if (\is_array($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(':documentRevision', $revision, PDO::PARAM_STR);