From ba01e0c9f6a0430fcb542a1b8df0895d83b0d175 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 15 Jun 2017 13:00:11 +0200 Subject: [PATCH] Add default value for price --- .../controllers/admin/AdminAntadisConfiguratorController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/modules/antadisconfigurator/controllers/admin/AdminAntadisConfiguratorController.php b/www/modules/antadisconfigurator/controllers/admin/AdminAntadisConfiguratorController.php index 5a1b5ae9..58ef86ee 100644 --- a/www/modules/antadisconfigurator/controllers/admin/AdminAntadisConfiguratorController.php +++ b/www/modules/antadisconfigurator/controllers/admin/AdminAntadisConfiguratorController.php @@ -347,7 +347,6 @@ class AdminAntadisConfiguratorController extends ModuleAdminController 'label' => $this->l('Price'), 'hint' => $this->l('Prix génerique de l\'option'), 'name' => 'price', - 'value' => 0, 'required' => true ), ), @@ -357,6 +356,7 @@ class AdminAntadisConfiguratorController extends ModuleAdminController ); $this->fields_value['id_configurator_opt_group'] = (int)Tools::getValue('id_configurator_opt_group'); + $this->fields_value['price'] = 0; // Override var of Controller $this->table = 'configurator_opt';