Fix Entrust management of enabling search in select to the Chosen plugin

pull/3852/head
IgorA100 2024-03-05 14:06:13 +03:00 committed by GitHub
parent 610109d569
commit 8f521a7221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
( $value['Value'] ? ' checked="checked"' : '').
( $optionCanEdit ? '' : ' disabled="disabled"').' />'.PHP_EOL;
} else if (is_array($value['Hint'])) {
$attributes = ['id'=>$name, 'class'=>'form-control-sm'.(count($value['Hint'])>10?' chosen':'')];
$attributes = ['id'=>$name, 'class'=>'form-control-sm chosen'];
if (!$optionCanEdit) $attributes['disabled']='disabled';
echo htmlSelect("newConfig[$name]", $value['Hint'], $value['Value'], $attributes);
} else if (preg_match('/\|/', $value['Hint'])) {