Merge pull request #12958 from altatof/sellang
FIX : default lang selection when filter
This commit is contained in:
commit
a1b787bc08
@ -95,12 +95,9 @@ class FormAdmin
|
||||
if ($showcode == 1) $valuetoshow=$key.' - '.$value;
|
||||
if ($showcode == 2) $valuetoshow=$value.' ('.$key.')';
|
||||
|
||||
if ($filter && is_array($filter))
|
||||
if ($filter && is_array($filter) && array_key_exists($key, $filter))
|
||||
{
|
||||
if ( ! array_key_exists($key, $filter))
|
||||
{
|
||||
$out.= '<option value="'.$key.'">'.$valuetoshow.'</option>';
|
||||
}
|
||||
continue;
|
||||
}
|
||||
elseif ($selected == $key)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user