From 68d97a5e97a8e208e6ce917adb76e5f7907f55c8 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 13 May 2026 11:42:25 +0200 Subject: [PATCH] handle case where old value or new value and not both are null explicitly in markDirty Method --- .../libraries/vertragsbestandteil/AbstractBestandteil.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/libraries/vertragsbestandteil/AbstractBestandteil.php b/application/libraries/vertragsbestandteil/AbstractBestandteil.php index 09e736580..4e1e8b9d0 100644 --- a/application/libraries/vertragsbestandteil/AbstractBestandteil.php +++ b/application/libraries/vertragsbestandteil/AbstractBestandteil.php @@ -40,6 +40,8 @@ abstract class AbstractBestandteil implements IValidation if( is_bool($new_value) && ($old_value !== $new_value) ) { $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) { $this->modifiedcolumns[$columnname] = $columnname; }