mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 00:09:13 +01:00
select priority should map 0 to None, not empty
This commit is contained in:
parent
d5dfb4af1f
commit
435f726bf9
@ -1648,7 +1648,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
);
|
);
|
||||||
|
|
||||||
$pri = Array(
|
$pri = Array(
|
||||||
0 => '',
|
0 => lang('None'),
|
||||||
1 => lang('Low'),
|
1 => lang('Low'),
|
||||||
2 => lang('Normal'),
|
2 => lang('Normal'),
|
||||||
3 => lang('High')
|
3 => lang('High')
|
||||||
|
@ -356,7 +356,7 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
protected function get_selects()
|
protected function get_selects()
|
||||||
{
|
{
|
||||||
$this->selects['priority'] = Array(
|
$this->selects['priority'] = Array(
|
||||||
0 => '',
|
0 => lang('None'),
|
||||||
1 => lang('Low'),
|
1 => lang('Low'),
|
||||||
2 => lang('Normal'),
|
2 => lang('Normal'),
|
||||||
3 => lang('High')
|
3 => lang('High')
|
||||||
@ -382,7 +382,7 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
*/
|
*/
|
||||||
public function get_filter_fields(Array &$filters)
|
public function get_filter_fields(Array &$filters)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Calendar SO doesn't support filtering by column, so we have to remove pretty much everything
|
// Calendar SO doesn't support filtering by column, so we have to remove pretty much everything
|
||||||
unset($filters['recur_date']);
|
unset($filters['recur_date']);
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class calendar_import_csv implements importexport_iface_import_plugin {
|
|||||||
|
|
||||||
$lookups = array(
|
$lookups = array(
|
||||||
'priority' => Array(
|
'priority' => Array(
|
||||||
0 => '',
|
0 => lang('None'),
|
||||||
1 => lang('Low'),
|
1 => lang('Low'),
|
||||||
2 => lang('Normal'),
|
2 => lang('Normal'),
|
||||||
3 => lang('High')
|
3 => lang('High')
|
||||||
|
@ -173,7 +173,7 @@ class calendar_uiviews extends calendar_ui
|
|||||||
'daywise' => True,
|
'daywise' => True,
|
||||||
);
|
);
|
||||||
$this->holidays = $this->bo->read_holidays($this->year);
|
$this->holidays = $this->bo->read_holidays($this->year);
|
||||||
|
array_push($this->holidays, $this->bo->read_holidays($this->year+1));
|
||||||
$this->check_owners_access();
|
$this->check_owners_access();
|
||||||
|
|
||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_dragdrop'])
|
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_dragdrop'])
|
||||||
|
@ -124,7 +124,7 @@ class select_widget
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'select-priority':
|
case 'select-priority':
|
||||||
$cell['sel_options'] = array('','low','normal','high');
|
$cell['sel_options'] = array('none','low','normal','high');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'select-bool': // equal to checkbox, can be used with nextmatch-customfilter to filter a boolean column
|
case 'select-bool': // equal to checkbox, can be used with nextmatch-customfilter to filter a boolean column
|
||||||
|
Loading…
Reference in New Issue
Block a user