From 749cc9db9694e38a4ed0d7170e27d7b1a31fdd75 Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Sat, 22 Jul 2023 15:47:54 +0530 Subject: [PATCH] Fixed data tracking when value is empty --- data/CRMEntity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/CRMEntity.php b/data/CRMEntity.php index 5d231a2f6..4c417531c 100644 --- a/data/CRMEntity.php +++ b/data/CRMEntity.php @@ -3121,7 +3121,7 @@ class TrackableObject implements ArrayAccess, IteratorAggregate { } function offsetExists($key) { - return isset($this->storage[$key]); + return isset($this->storage[$key]) || array_key_exists($key, $this->storage); } function offsetSet($key, $value) { @@ -3142,7 +3142,7 @@ class TrackableObject implements ArrayAccess, IteratorAggregate { } public function offsetGet($key) { - return isset($this->storage[$key]) ? $this->storage[$key] : null; + return isset($this->storage[$key]) || array_key_exists($key, $this->storage) ? $this->storage[$key] : null; } public function getIterator() { -- GitLab