File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
lib/internal/Magento/Framework/Model/Resource/Db Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -779,14 +779,15 @@ public function getChecksum($table)
779
779
*/
780
780
protected function prepareDataForUpdate ($ object )
781
781
{
782
- $ data = $ this ->_prepareDataForSave ($ object );
783
- unset($ data [$ this ->getIdFieldName ()]);
784
-
782
+ $ data = $ object ->getData ();
785
783
foreach ($ object ->getStoredData () as $ key => $ value ) {
786
- if (array_key_exists ($ key , $ data ) && $ data [$ key ] == $ value ) {
784
+ if (array_key_exists ($ key , $ data ) && $ data [$ key ] === $ value ) {
787
785
unset($ data [$ key ]);
788
786
}
789
787
}
788
+ $ dataObject = new \Magento \Framework \Object ($ data );
789
+ $ data = $ this ->_prepareDataForTable ($ dataObject , $ this ->getMainTable ());
790
+ unset($ data [$ this ->getIdFieldName ()]);
790
791
791
792
return $ data ;
792
793
}
You can’t perform that action at this time.
0 commit comments