Merge pull request #12958 from altatof/sellang

FIX : default lang selection when filter
This commit is contained in:
Laurent Destailleur 2020-01-29 22:46:10 +01:00 committed by GitHub
commit a1b787bc08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{