We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a36b82c commit 3b2e89aCopy full SHA for 3b2e89a
app/code/core/Mage/Catalog/Model/Api2/Product/Rest/Admin/V1.php
@@ -343,7 +343,7 @@ protected function _filterStockData(&$stockData)
343
} else {
344
$nonManageStockFields = ['manage_stock', 'use_config_manage_stock', 'min_sale_qty',
345
'use_config_min_sale_qty', 'max_sale_qty', 'use_config_max_sale_qty'];
346
- foreach ($stockData as $field => $value) {
+ foreach (array_keys($stockData) as $field) {
347
if (!in_array($field, $nonManageStockFields)) {
348
unset($stockData[$field]);
349
}
0 commit comments