We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932488c commit fab4232Copy full SHA for fab4232
library/Opus/Model/Field.php
@@ -328,7 +328,7 @@ public function setValue($value)
328
case 'bool':
329
// Initially the stored value is null which matches false, but field needs to be set
330
// TODO better way?
331
- if ((bool) $value === (bool) $this->value && ! $this->value === null) {
+ if ((bool) $value === (bool) $this->value && ($this->value !== null || $value === null)) {
332
return $this;
333
}
334
break;
0 commit comments