Commit 4a98cdd2e0217cdd69d55df37f8b6a4e2ce88d1b

Authored by Alexey Boroda
1 parent 24a7e405

-Import fix with empty status

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
common/modules/product/models/Import.php
... ... @@ -164,6 +164,8 @@
164 164 // ===== Set stock ====
165 165 if (!$city_name) {
166 166 if (!$count) {
  167 + $productVariant->status = 0;
  168 + $productVariant->save(false, ['status']);
167 169 continue;
168 170 }
169 171 $city_name = 'Склад';
... ...