Make sure default option is first

This commit is contained in:
nathan 2022-12-20 15:44:48 -07:00
parent 098fe647dc
commit 2748376f6f

View File

@ -505,14 +505,14 @@ class preferences_settings
switch($type)
{
case 'user':
$setting['values'] = array('' => lang('Use default'))+$setting['values'];
$setting['values'] = array(['value'=>'','label' => lang('Use default')])+$setting['values'];
break;
case 'default':
case 'group':
$setting['values'] = array('' => lang('No default'))+$setting['values'];
$setting['values'] = array(['value'=>'','label' => lang('No default')])+$setting['values'];
break;
case 'forced';
$setting['values'] = array('**NULL**' => lang('Users choice'))+$setting['values'];
$setting['values'] = array(['value'=> '**NULL**','label' => lang('Users choice')])+$setting['values'];
break;
}
}