[-] BO : fix bug #PSFV-529 - AdminGeolocalisation : isCleanHtml control on checkbox

This commit is contained in:
tDidierjean
2012-03-08 10:39:15 +00:00
parent 8ccff015d4
commit df459952cd
3 changed files with 42 additions and 42 deletions
-2
View File
@@ -481,8 +481,6 @@ class AdminControllerCore extends Controller
} }
else else
{ {
if (!isset($this->table))
return false;
// set token // set token
$token = Tools::getValue('token') ? Tools::getValue('token') : $this->token; $token = Tools::getValue('token') ? Tools::getValue('token') : $this->token;
+2 -1
View File
@@ -64,7 +64,8 @@ class HelperOptionsCore extends Helper
foreach ($category_data['fields'] as $key => $field) foreach ($category_data['fields'] as $key => $field)
{ {
// Set field value // Set field value unless explicitly denied
if (!isset($field['auto_value']) || $field['auto_value'])
$field['value'] = $this->getOptionValue($key, $field); $field['value'] = $this->getOptionValue($key, $field);
// Check if var is invisible (can't edit it in current shop context), or disable (use default value for multishop) // Check if var is invisible (can't edit it in current shop context), or disable (use default value for multishop)
@@ -69,7 +69,8 @@ class AdminGeolocationControllerCore extends AdminController
'title' => $this->l('Select countries that can access your store:'), 'title' => $this->l('Select countries that can access your store:'),
'type' => 'checkbox_table', 'type' => 'checkbox_table',
'identifier' => 'iso_code', 'identifier' => 'iso_code',
'list' => Country::getCountries($this->context->language->id) 'list' => Country::getCountries($this->context->language->id),
'auto_value' => false
), ),
), ),
), ),
@@ -85,9 +86,10 @@ class AdminGeolocationControllerCore extends AdminController
); );
} }
public function postProcess() /**
{ * @see AdminController::processUpdateOptions()
if (Tools::isSubmit('submitGeolocationWhitelist')) */
public function processUpdateOptions($token)
{ {
$redirectAdmin = false; $redirectAdmin = false;
if ($this->isGeoLiteCityAvailable()) if ($this->isGeoLiteCityAvailable())
@@ -123,10 +125,9 @@ class AdminGeolocationControllerCore extends AdminController
} }
if ($redirectAdmin) if ($redirectAdmin)
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4'); $this->redirect_after = self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4';
}
return parent::postProcess(); return parent::processUpdateOptions($token);
} }
public function renderOptions() public function renderOptions()