// Fixed bugs when editing Warehouses & Suppliers for a product

This commit is contained in:
bMancone
2011-12-14 16:54:02 +00:00
parent 1e8ca5e945
commit b517037e14
2 changed files with 13 additions and 11 deletions
+1
View File
@@ -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' => ''
); );