diff --git a/calendar/js/app.js b/calendar/js/app.js index e3bfa61021..08b770fd3d 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -498,15 +498,18 @@ app.classes.calendar = AppJS.extend( */ getState: function() { - // we are currently in list-view - if (this.et2 && this.et2.getWidgetById('nm')) - { - return this._super.apply(this, arguments); // call default implementation - } var egw_script_tag = document.getElementById('egw_script_id'); var state = egw_script_tag.getAttribute('data-calendar-state'); - return state ? JSON.parse(state) : null; + state = state ? JSON.parse(state) : {}; + + // we are currently in list-view + if (this.et2 && this.et2.getWidgetById('nm')) + { + jQuery.extend(state, this._super.apply(this, arguments)); // call default implementation + } + + return state; }, /** diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 3ffb77b1c7..bc4db642d4 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -1781,13 +1781,14 @@ $LAB.setOptions({AlwaysPreserveOrder:true,BasePath:"'.$GLOBALS['egw_info']['serv $filters = array( 'blank' => array( 'name' => lang('No filters'), - 'filters' => array(), + 'filter' => array(), 'group' => true ) ); $default_filter = $GLOBALS['egw_info']['user']['preferences'][$app][$default]; if(!$default_filter) $default_filter = "blank"; + $is_admin = $GLOBALS['egw_info']['user']['apps']['admin']; $html = "