[-] BO : fixed bug #PSCFV-4865
This commit is contained in:
@@ -1228,7 +1228,7 @@
|
||||
<div class="margin-form">
|
||||
<select name="payment_module_name" id="payment_module_name">
|
||||
{foreach from=$payment_modules item='module'}
|
||||
<option value="{$module.name}" {if isset($smarty.post.payment_module_name) && $module.name == $smarty.post.payment_module_name}selected="selected"{/if}>{$module.name}</option>
|
||||
<option value="{$module->name}" {if isset($smarty.post.payment_module_name) && $module->name == $smarty.post.payment_module_name}selected="selected"{/if}>{$module->displayName}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -168,13 +168,17 @@ class AdminOrdersControllerCore extends AdminController
|
||||
'bankwire' => (int)Configuration::get('PS_OS_BANKWIRE'),
|
||||
'cashondelivery' => (int)Configuration::get('PS_OS_PREPARATION'),
|
||||
'other' => (int)Configuration::get('PS_OS_PAYMENT'));
|
||||
$payment_modules = array();
|
||||
foreach (PaymentModule::getInstalledPaymentModules() as $p_module)
|
||||
$payment_modules[] = Module::getInstanceById((int)$p_module['id_module']);
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'recyclable_pack' => (int)Configuration::get('PS_RECYCLABLE_PACK'),
|
||||
'gift_wrapping' => (int)Configuration::get('PS_GIFT_WRAPPING'),
|
||||
'cart' => $cart,
|
||||
'currencies' => Currency::getCurrencies(),
|
||||
'langs' => Language::getLanguages(true, Context::getContext()->shop->id),
|
||||
'payment_modules' => PaymentModule::getInstalledPaymentModules(),
|
||||
'payment_modules' => $payment_modules,
|
||||
'order_states' => OrderState::getOrderStates((int)Context::getContext()->language->id),
|
||||
'defaults_order_state' => $defaults_order_state,
|
||||
'show_toolbar' => $this->show_toolbar,
|
||||
|
||||
Reference in New Issue
Block a user