diff --git a/classes/stock/Warehouse.php b/classes/stock/Warehouse.php index 5ef9ef0c9..9e0cc378f 100644 --- a/classes/stock/Warehouse.php +++ b/classes/stock/Warehouse.php @@ -68,7 +68,7 @@ class WarehouseCore extends ObjectModel 'fields' => array( 'id_address' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => true, 'size' => 45), - 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 45), + 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => true, 'size' => 45), 'id_employee' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'management_type' => array('type' => self::TYPE_STRING, 'validate' => 'isStockManagement', 'required' => true), 'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), diff --git a/controllers/admin/AdminWarehousesController.php b/controllers/admin/AdminWarehousesController.php index dc65b4e9d..88cfbf8f0 100644 --- a/controllers/admin/AdminWarehousesController.php +++ b/controllers/admin/AdminWarehousesController.php @@ -114,9 +114,9 @@ class AdminWarehousesControllerCore extends AdminController $this->displayInformation($this->l('Futhermore, for each warehouse, you have to check :')); $this->displayInformation($this->l('the management type (according to the law in your country), the valuation currency, its associated carriers and shops.').'
'); $this->displayInformation($this->l('Finally, you can see detailed informations on your stock per warehouse, such as its valuation, the number of products and quantities stored, ...').'

'); - + $this->displayInformation($this->l('Be careful, products from different warehouses will need to be shipped in different packages.')); - + return parent::renderList(); } @@ -168,7 +168,7 @@ class AdminWarehousesControllerCore extends AdminController 'maxlength' => 45, 'required' => true, 'desc' => $this->l('Name of this warehouse'), - 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:', + 'hint' => $this->l('Invalid characters:').' !<>,;?=+()@#"�{}_$%:', ), array( 'type' => 'text', @@ -248,7 +248,7 @@ class AdminWarehousesControllerCore extends AdminController 'type' => 'select', 'label' => $this->l('Carriers:'), 'name' => 'ids_carriers[]', - 'required' => true, + 'required' => false, 'multiple' => true, 'options' => array( 'query' => Carrier::getCarriers($this->context->language->id, true),