mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
handle case where old value or new value and not both are null explicitly in markDirty Method
This commit is contained in:
@@ -40,6 +40,8 @@ abstract class AbstractBestandteil implements IValidation
|
|||||||
|
|
||||||
if( is_bool($new_value) && ($old_value !== $new_value) ) {
|
if( is_bool($new_value) && ($old_value !== $new_value) ) {
|
||||||
$this->modifiedcolumns[$columnname] = $columnname;
|
$this->modifiedcolumns[$columnname] = $columnname;
|
||||||
|
} else if(is_null($old_value) xor is_null($new_value)) {
|
||||||
|
$this->modifiedcolumns[$columnname] = $columnname;
|
||||||
} else if($old_value != $new_value) {
|
} else if($old_value != $new_value) {
|
||||||
$this->modifiedcolumns[$columnname] = $columnname;
|
$this->modifiedcolumns[$columnname] = $columnname;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user