From 467b4400059c95fe9be54cd054b7a3bbdce8a5e6 Mon Sep 17 00:00:00 2001 From: satish <satish.dvnk@vtiger.com> Date: Mon, 19 Jun 2017 17:19:47 +0530 Subject: [PATCH] Fixes #587 - problem with '0' at the beginning of value of field --- data/CRMEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/CRMEntity.php b/data/CRMEntity.php index 9653d8f80..5f5c5b04a 100755 --- a/data/CRMEntity.php +++ b/data/CRMEntity.php @@ -2948,7 +2948,7 @@ class TrackableObject implements ArrayAccess, IteratorAggregate { // decode_html only expects string $olderValue = is_string($olderValue) ? decode_html($olderValue) : $olderValue ; //same logic is used in vtEntityDelta to check for delta - if((empty($olderValue) && !empty($value)) || ($olderValue != $value)) { + if((empty($olderValue) && !empty($value)) || ($olderValue !== $value)) { $this->changed[] = $key; } } -- GitLab