[-] BO : #PSTEST-31 : update in AdminProductsController : available_date

This commit is contained in:
lLefevre
2011-12-19 14:42:58 +00:00
parent 5a6fb2db57
commit 41450edc44
6 changed files with 23 additions and 25 deletions
@@ -561,7 +561,7 @@ class AdminProductsControllerCore extends AdminController
$this->_errors[] = Tools::displayError('This attribute already exists.');
else
{
if (Validate::isDateFormat(Tools::getValue('available_date')))
if (Validate::isDateFormat(Tools::getValue('available_date_attribute')))
{
$product->updateAttribute($id_product_attribute,
Tools::getValue('attribute_wholesale_price'),
@@ -576,7 +576,7 @@ class AdminProductsControllerCore extends AdminController
Tools::getValue('attribute_location'),
Tools::getValue('attribute_upc'),
Tools::getValue('minimal_quantity'),
Tools::getValue('available_date'));
Tools::getValue('available_date_attribute'));
if ($id_reason = (int)Tools::getValue('id_mvt_reason') && (int)Tools::getValue('attribute_mvt_quantity') > 0 && $id_reason > 0)
{
@@ -1994,13 +1994,6 @@ class AdminProductsControllerCore extends AdminController
);
}
$this->toolbar_btn['cancel'] = array(
'short' => 'Close',
'href' => '#todo'.$this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id,
'desc' => $this->l('Cancel'),
'confirm' => 1
);
if ($this->tabAccess['edit'])
{
$this->toolbar_btn['save'] = array(