fixed initialization logtype in search form

This commit is contained in:
following
2013-07-26 00:21:04 +02:00
parent 24c39369f8
commit c748cda3c7
2 changed files with 2 additions and 1 deletions

View File

@ -1622,6 +1622,7 @@ function outputSearchForm($options)
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id`=`log_types`.`trans_id` AND `sys_trans_text`.`lang`='&1'
ORDER BY `log_types`.`id` ASC",
$opt['template']['locale'], isset($options['logtype']) ? $options['logtype'] : 0);
$tpl->assign_rs('logtype_options',$rs);
sql_free_result($rs);

View File

@ -739,7 +739,7 @@ function switchAttributeCat2()
<td colspan="2">
<select name="logtype">
{foreach from=$logtype_options item=logtype_option}
<option value="{$logtype_option.id|escape}" {if $logtype_option.selcted}selected="selected"{/if}>{$logtype_option.name|escape}</option>
<option value="{$logtype_option.id|escape}" {if $logtype_option.selected}selected="selected"{/if}>{$logtype_option.name|escape}</option>
{/foreach}
</select>
</td>