Skip to content

Commit c6e5084

Browse files
committed
ACP2E-2622: Unable to save changes to phone number in existing order details
1 parent 8a40770 commit c6e5084

File tree

1 file changed

+9
-2
lines changed
  • lib/internal/Magento/Framework/Model/ResourceModel/Db/VersionControl

1 file changed

+9
-2
lines changed

lib/internal/Magento/Framework/Model/ResourceModel/Db/VersionControl/Snapshot.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,15 @@ public function isModified(\Magento\Framework\DataObject $entity)
6767
return true;
6868
}
6969
foreach ($this->snapshotData[$entityClass][$entity->getId()] as $field => $value) {
70-
if ($entity->getDataByKey($field) !== $value) {
71-
return true;
70+
$fieldValue = $entity->getDataByKey($field);
71+
if(is_numeric($fieldValue) && is_numeric($value)) {
72+
if ($fieldValue !== $value) {
73+
return true;
74+
}
75+
} else {
76+
if ($fieldValue != $value) {
77+
return true;
78+
}
7279
}
7380
}
7481

0 commit comments

Comments
 (0)