File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Model/Category/Attribute/Backend
Test/Unit/Model/Category/Attribute/Backend Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public function beforeSave($object)
99
99
$ object ->setData ($ this ->additionalData . $ attributeName , $ value );
100
100
$ object ->setData ($ attributeName , $ imageName );
101
101
} elseif (!is_string ($ value )) {
102
- $ object ->setData ($ attributeName , '' );
102
+ $ object ->setData ($ attributeName , null );
103
103
}
104
104
105
105
return parent ::beforeSave ($ object );
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function testBeforeSaveValueDeletion($value)
88
88
89
89
$ model ->beforeSave ($ object );
90
90
91
- $ this ->assertEquals ('' , $ object ->getTestAttribute ());
91
+ $ this ->assertEquals (null , $ object ->getTestAttribute ());
92
92
}
93
93
94
94
/**
You can’t perform that action at this time.
0 commit comments