[-] BO : Fixing warnings on PaymentModule Tab

This commit is contained in:
fSerny
2012-05-22 09:40:18 +00:00
parent 890cd233fa
commit b6aeb92914
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -166,7 +166,7 @@ class AdminPaymentControllerCore extends AdminController
break;
}
$lists = array('currencies' =>
$lists = array(
array('items' => Currency::getCurrencies(),
'title' => $this->l('Currency restrictions'),
'desc' => $this->l('Please mark the checkbox(es) for the currency or currencies for which you want the payment module(s) to be available.'),
@@ -203,6 +203,9 @@ class AdminPaymentControllerCore extends AdminController
else
$list['items'][$key_item]['check_list'][$key_module] = 'unchecked';
if (!isset($module->$name_id))
$module->$name_id = array();
// If is a country list and the country is limited, remove it from list
if ($name_id == 'country'
&& isset($module->limited_countries)