prepare release 1.6 (#1270)
This commit is contained in:
@@ -21,7 +21,7 @@ class Constants
|
||||
/**
|
||||
* The current release status, either "stable" or "dev"
|
||||
*/
|
||||
public const STATUS = 'dev';
|
||||
public const STATUS = 'stable';
|
||||
/**
|
||||
* The software name
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user