mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Fix no longer working 'None' category option
This commit is contained in:
parent
f7589316e0
commit
0fa3ad831b
@ -181,10 +181,10 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
||||
if(!$value['no_cat'] && !$value['cat_is_select'])
|
||||
{
|
||||
$cat_app = $value['cat_app'] ? $value['cat_app'] : $GLOBALS['egw_info']['flags']['current_app'];
|
||||
$value['options-cat_id'] = array();
|
||||
$value['options-cat_id'] = self::$request->sel_options['cat_id'] ? self::$request->sel_options['cat_id'] : array();
|
||||
|
||||
// Add 'All', if not already there
|
||||
if(!$value['options-cat_id'][''] && !($value['options-cat_id'][0] && $value['options-cat_id'][0]['value'] == ''))
|
||||
if(!$value['options-cat_id'][''] && !$value['options-cat_id'][0])
|
||||
{
|
||||
$value['options-cat_id'][''] = lang('all');
|
||||
}
|
||||
|
@ -889,7 +889,7 @@ class timesheet_ui extends timesheet_bo
|
||||
$sel_options = array(
|
||||
'ts_owner' => $read_grants,
|
||||
'pm_id' => array(lang('No project')),
|
||||
'cat_id' => array(lang('None')),
|
||||
'cat_id' => array(array('value' => '', 'label' => lang('all')), array('value' => 0, 'label'=>lang('None'))),
|
||||
'ts_status' => $this->status_labels+array(lang('No status')),
|
||||
);
|
||||
if($this->config_data['history'])
|
||||
|
Loading…
Reference in New Issue
Block a user