diff --git a/adm/tabs/AdminDiscounts.php b/adm/tabs/AdminDiscounts.php index 7852c5a4..b082df6f 100755 --- a/adm/tabs/AdminDiscounts.php +++ b/adm/tabs/AdminDiscounts.php @@ -77,6 +77,7 @@ class AdminDiscounts extends AdminTab $object->cumulable = (!isset($_POST['cumulable']) ? false : true); $object->cumulable_reduction = (!isset($_POST['cumulable_reduction']) ? false : true); + $object->appli = (!isset($_POST['appli']) ? 0 : 1); } public function postProcess() @@ -133,7 +134,6 @@ class AdminDiscounts extends AdminTab $this->_errors[] = Tools::displayError('Please set a category for this voucher.'); $this->copyFromPost($object, $this->table); $result = $object->update(true, false, $categories); - // @Override Antadis - link discount to custom group if ($discount_custom_group_id = Tools::getValue("discount_custom_group")) { CustomGroup::linkToDiscount($discount_custom_group_id, $object->id); @@ -350,6 +350,13 @@ class AdminDiscounts extends AdminTab

+
+

+ getFieldValue($obj, 'appli') == 1) ? ' checked="checked"' : '').' id="appli_on" value="1" /> + +

+
+