* Calendar: use "default" filter for home screen, instead of "all" which shows canceled events too

This commit is contained in:
Ralf Becker 2013-06-27 09:22:24 +00:00
parent 533f141bc2
commit ac40e068b6
3 changed files with 10 additions and 4 deletions

View File

@ -1144,6 +1144,11 @@ class calendar_groupdav extends groupdav_handler
$privileges = parent::current_user_privileges($path, $user);
//error_log(__METHOD__."('$path', $user) parent gave ".array2string($privileges));
if (!$user || $user == $GLOBALS['egw_info']['user']['account_id'])
{
$privileges['all'] = 'all';
}
if ($this->bo->check_perms(EGW_ACL_FREEBUSY, 0, $user))
{
$privileges['read-free-busy'] = HTTP_WebDAV_Server::mkprop(groupdav::CALDAV, 'read-free-busy', '');

View File

@ -5,7 +5,7 @@
* @link http://www.egroupware.org
* @package calendar
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2005-12 by RalfBecker-At-outdoor-training.de
* @copyright (c) 2005-13 by RalfBecker-At-outdoor-training.de
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
@ -77,7 +77,7 @@ class calendar_uilist extends calendar_ui
$this->__construct(array(
'date' => $this->bo->date2string($this->bo->now_su),
'cat_id' => 0,
'filter' => 'all',
'filter' => 'default',
'owner' => $this->user,
'multiple' => 0,
'view' => $this->bo->cal_prefs['mainscreen_showevents'],

View File

@ -5,7 +5,7 @@
* @link http://www.egroupware.org
* @package calendar
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2004-12 by RalfBecker-At-outdoor-training.de
* @copyright (c) 2004-13 by RalfBecker-At-outdoor-training.de
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
@ -240,7 +240,7 @@ class calendar_uiviews extends calendar_ui
$this->__construct(array(
'date' => $this->bo->date2string($this->bo->now_su),
'cat_id' => 0,
'filter' => 'all',
'filter' => 'default',
'owner' => substr($this->cal_prefs['mainscreen_showevents'],0,7) == 'planner' && $this->cal_prefs['planner_start_with_group'] ?
$this->cal_prefs['planner_start_with_group'] : $this->user,
'multiple' => 0,
@ -277,6 +277,7 @@ class calendar_uiviews extends calendar_ui
case 'day':
return $group_warning.$this->day(true);
case 'day4':
return $group_warning.$this->week(4,true);
}