diff --git a/preferences/preferences.php b/preferences/preferences.php index d50f2efeee..50f3357953 100755 --- a/preferences/preferences.php +++ b/preferences/preferences.php @@ -110,6 +110,13 @@ { global $t; + if ($GLOBALS['type'] != 'user') // for default and forced we need a 3. setting + { + return create_select_box($label_name,$preference_name,array( + '0' => lang('No'), + '1' => lang('Yes') + )); + } $_appname = check_app(); $GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($t); $t->set_var('row_name',lang($label_name)); @@ -119,18 +126,7 @@ return True; } - switch ($GLOBALS['type']) - { - case 'user': - $s = ''; - break; - case 'default': - $s = 'data[$_appname][$preference_name] ? ' CHECKED' : '') . '">'; - break; - case 'forced': - $s = 'data[$_appname][$preference_name] ? ' CHECKED' : '') . '">'; - break; - } + $s = ''; $t->set_var('row_value',$s); $t->fp('rows','row',True);