File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
app/code/Magento/Catalog/Model/Product/Attribute/Backend
dev/tests/api-functional/testsuite/Magento/Catalog/Api Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public function afterSave($object)
128
128
$ attribute = $ this ->getAttribute ();
129
129
$ attributeCode = $ attribute ->getAttributeCode ();
130
130
$ value = $ object ->getData ($ attributeCode );
131
- if ($ value === null || (float )$ value > 0 ) {
131
+ if ($ value === null || (float )$ value > 0 ) {
132
132
if ($ attribute ->isScopeWebsite () && $ object ->getStoreId () != \Magento \Store \Model \Store::DEFAULT_STORE_ID ) {
133
133
if ($ this ->isUseDefault ($ object )) {
134
134
$ value = null ;
Original file line number Diff line number Diff line change @@ -1275,6 +1275,11 @@ public function testSpecialPrice()
1275
1275
*/
1276
1276
public function testResetSpecialPrice ()
1277
1277
{
1278
+ $ this ->_markTestAsRestOnly (
1279
+ 'In order to properly run this test for SOAP, XML must be used to specify <value></value> ' .
1280
+ 'for the special_price value. Otherwise, the null value gets processed as a string and ' .
1281
+ 'cast to a double value of 0.0. '
1282
+ );
1278
1283
$ productData = $ this ->getSimpleProductData ();
1279
1284
$ productData ['custom_attributes ' ] = [
1280
1285
['attribute_code ' => self ::KEY_SPECIAL_PRICE , 'value ' => 5.00 ]
You can’t perform that action at this time.
0 commit comments