// Fixed bugs when editing Warehouses & Suppliers for a product
This commit is contained in:
@@ -259,6 +259,7 @@ class ProductCore extends ObjectModel
|
|||||||
'cache_has_attachments' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
'cache_has_attachments' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||||
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
|
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
|
||||||
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
|
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
|
||||||
|
'advanced_stock_management' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||||
|
|
||||||
// Lang fields
|
// Lang fields
|
||||||
'meta_description' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255),
|
'meta_description' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255),
|
||||||
|
|||||||
@@ -3437,6 +3437,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$attributes = $obj->getAttributesResume($this->context->language->id);
|
$attributes = $obj->getAttributesResume($this->context->language->id);
|
||||||
if (empty($attributes))
|
if (empty($attributes))
|
||||||
$attributes[] = array(
|
$attributes[] = array(
|
||||||
|
'id_product' => $obj->id,
|
||||||
'id_product_attribute' => 0,
|
'id_product_attribute' => 0,
|
||||||
'attribute_designation' => ''
|
'attribute_designation' => ''
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user