Skip to content

Commit

Permalink
Change the logic to check if the stock has been set so that it needs …
Browse files Browse the repository at this point in the history
…both the quantity and is_in_stock values.
  • Loading branch information
paulpartington-cti committed Jul 28, 2017
1 parent 3c5a508 commit 05ec582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Component/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public function constructAttributeData (array $attributes, \Magento\Catalog\Mode
*/
public function isStockSpecified(array $productData)
{
if (isset($productData[self::IS_IN_STOCK_COLUMN_HEADING]) || isset($productData[self::QTY_COLUMN_HEADING])) {
if (isset($productData[self::IS_IN_STOCK_COLUMN_HEADING]) && isset($productData[self::QTY_COLUMN_HEADING])) {
return true;
}
return false;
Expand Down

0 comments on commit 05ec582

Please sign in to comment.