prepare release 1.6 (#1270)

This commit is contained in:
Kevin Papst
2019-11-24 00:02:43 +01:00
committed by GitHub
parent 817a43b178
commit 936ab05882
15 changed files with 36 additions and 14 deletions

View File

@@ -116,6 +116,16 @@ trait MetaTableTypeTrait
*/
public function setValue($value): MetaTableTypeInterface
{
// unchecked checkboxes / false bool would save an empty string in the database
// those cannot be searched in the database
if (null !== $value) {
switch ($this->type) {
case YesNoType::class:
case CheckboxType::class:
$value = (int) $value;
}
}
$this->value = $value;
return $this;