Skip to content

Commit 88f5a67

Browse files
author
syam.sg
committed
reverting unwnated chnages made in product save
1 parent 24ed2f8 commit 88f5a67

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Save.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ public function execute()
139139
}
140140

141141
$originalSku = $product->getSku();
142-
if($originalSku == 0){
143-
throw new \Magento\Framework\Exception\LocalizedException(__("SKU cannot be zero."));
144-
}
145142
$canSaveCustomOptions = $product->getCanSaveCustomOptions();
146143
$product->save();
147144
$this->handleImageRemoveError($data, $product->getId());

app/code/Magento/Catalog/i18n/en_US.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,4 +868,3 @@ Details,Details
868868
"Add To Compare","Add To Compare"
869869
"Learn more","Learn more"
870870
"Recently Viewed","Recently Viewed"
871-
"SKU cannot be zero.","SKU cannot be zero."

0 commit comments

Comments
 (0)