We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a40770 commit c6e5084Copy full SHA for c6e5084
lib/internal/Magento/Framework/Model/ResourceModel/Db/VersionControl/Snapshot.php
@@ -67,8 +67,15 @@ public function isModified(\Magento\Framework\DataObject $entity)
67
return true;
68
}
69
foreach ($this->snapshotData[$entityClass][$entity->getId()] as $field => $value) {
70
- if ($entity->getDataByKey($field) !== $value) {
71
- return true;
+ $fieldValue = $entity->getDataByKey($field);
+ if(is_numeric($fieldValue) && is_numeric($value)) {
72
+ if ($fieldValue !== $value) {
73
+ return true;
74
+ }
75
+ } else {
76
+ if ($fieldValue != $value) {
77
78
79
80
81
0 commit comments