Skip to content

Commit 3b2e89a

Browse files
committed
rector
1 parent a36b82c commit 3b2e89a

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Catalog/Model/Api2/Product/Rest/Admin

1 file changed

+1
-1
lines changed

app/code/core/Mage/Catalog/Model/Api2/Product/Rest/Admin/V1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ protected function _filterStockData(&$stockData)
343343
} else {
344344
$nonManageStockFields = ['manage_stock', 'use_config_manage_stock', 'min_sale_qty',
345345
'use_config_min_sale_qty', 'max_sale_qty', 'use_config_max_sale_qty'];
346-
foreach ($stockData as $field => $value) {
346+
foreach (array_keys($stockData) as $field) {
347347
if (!in_array($field, $nonManageStockFields)) {
348348
unset($stockData[$field]);
349349
}

0 commit comments

Comments
 (0)