// follow up https://github.com/PrestaShop/PrestaShop/commit/7140a63272fa2de5f7368a062d7fde79ca89d692#commitcomment-4775950
This commit is contained in:
1 parent
9850eeb3e5
commit
3889f6d61f
1 file changed
+3
-4
@@ -255,7 +255,6 @@ class AdminImportControllerCore extends AdminController
|
|||||||
'uploadable_files' => array('label' => $this->l('Uploadable files (0 = No, 1 = Yes)')),
|
'uploadable_files' => array('label' => $this->l('Uploadable files (0 = No, 1 = Yes)')),
|
||||||
'text_fields' => array('label' => $this->l('Text fields (0 = No, 1 = Yes)')),
|
'text_fields' => array('label' => $this->l('Text fields (0 = No, 1 = Yes)')),
|
||||||
'out_of_stock' => array('label' => $this->l('Action when out of stock')),
|
'out_of_stock' => array('label' => $this->l('Action when out of stock')),
|
||||||
'advanced_stock_management' => array('label' => $this->l('Advanced stock management')),
|
|
||||||
'shop' => array(
|
'shop' => array(
|
||||||
'label' => $this->l('ID / Name of shop'),
|
'label' => $this->l('ID / Name of shop'),
|
||||||
'help' => $this->l('Ignore this field if you don\'t use the Multistore tool. If you leave this field empty, the default shop will be used.'),
|
'help' => $this->l('Ignore this field if you don\'t use the Multistore tool. If you leave this field empty, the default shop will be used.'),
|
||||||
@@ -1739,7 +1738,7 @@ class AdminImportControllerCore extends AdminController
|
|||||||
$warehouse_location_entity->id_product_attribute = 0;
|
$warehouse_location_entity->id_product_attribute = 0;
|
||||||
$warehouse_location_entity->id_warehouse = $product->warehouse;
|
$warehouse_location_entity->id_warehouse = $product->warehouse;
|
||||||
$warehouse_location_entity->save();
|
$warehouse_location_entity->save();
|
||||||
StockAvailable::synchronize($product->id); // Don't know if it is needed, but it can't hurt
|
StockAvailable::synchronize($product->id);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->warnings[] = sprintf(Tools::displayError('Warehouse did not exists, can not set on product %1$s '),$product->name[$default_language_id]);
|
$this->warnings[] = sprintf(Tools::displayError('Warehouse did not exists, can not set on product %1$s '),$product->name[$default_language_id]);
|
||||||
@@ -1946,11 +1945,11 @@ class AdminImportControllerCore extends AdminController
|
|||||||
else
|
else
|
||||||
$this->errors[] = ($field_error !== true ? $field_error : '').(isset($lang_field_error) && $lang_field_error !== true ? $lang_field_error : '');
|
$this->errors[] = ($field_error !== true ? $field_error : '').(isset($lang_field_error) && $lang_field_error !== true ? $lang_field_error : '');
|
||||||
|
|
||||||
// fils groups attributes
|
// fills groups attributes
|
||||||
$id_attribute_group = $obj->id;
|
$id_attribute_group = $obj->id;
|
||||||
$groups_attributes[$key]['id'] = $id_attribute_group;
|
$groups_attributes[$key]['id'] = $id_attribute_group;
|
||||||
}
|
}
|
||||||
else // alreay exists
|
else // already exists
|
||||||
{
|
{
|
||||||
$id_attribute_group = $groups[$group];
|
$id_attribute_group = $groups[$group];
|
||||||
$groups_attributes[$key]['id'] = $id_attribute_group;
|
$groups_attributes[$key]['id'] = $id_attribute_group;
|
||||||
|
|||||||
Reference in new issue
Block a user