// fix issue in AdminPayment

This commit is contained in:
dMetzger
2012-05-22 13:54:46 +00:00
parent 6a6f23f700
commit 4dd956fdb8
@@ -52,8 +52,9 @@
{foreach $payment_modules as $key_module => $module} {foreach $payment_modules as $key_module => $module}
{if $module->active} {if $module->active}
<td style="text-align: center"> <td style="text-align: center">
{assign var='type' value='null'}
{if !$item['check_list'][$key_module]} {if !$item['check_list'][$key_module]}
{$type = null} {* Keep $type to null *}
{elseif $list['name_id'] === 'currency'} {elseif $list['name_id'] === 'currency'}
{if $module->currencies && $module->currencies_mode == 'checkbox'} {if $module->currencies && $module->currencies_mode == 'checkbox'}
{$type = 'checkbox'} {$type = 'checkbox'}
@@ -63,7 +64,7 @@
{else} {else}
{$type = 'checkbox'} {$type = 'checkbox'}
{/if} {/if}
{if $type != null} {if $type != 'null'}
<input type="checkbox" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}" <input type="checkbox" name="{$module->name}_{$list['name_id']}[]" value="{$item[$list['identifier']]}"
{if $item['check_list'][$key_module] == 'checked'}checked="checked"{/if} {if $item['check_list'][$key_module] == 'checked'}checked="checked"{/if}
/> />