Skip to content
Snippets Groups Projects
Commit 467b4400 authored by Satish's avatar Satish
Browse files

Fixes #587 - problem with '0' at the beginning of value of field

parent db200fe4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment