diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 4cdec849cd..7956ce3cc6 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -400,6 +400,9 @@ class calendar_so switch($filter) { + case 'showonlypublic': + $where[] = "cal_public=1"; + $where[] = "cal_status != 'R'"; break; case 'unknown': $where[] = "cal_status='U'"; break; case 'accepted': diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index f2cba7e7e1..578030ce6b 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -691,6 +691,7 @@ class calendar_ui 'owner' => array(lang('Owner too'),lang('Show also events just owned by selected user')), 'all' => array(lang('All incl. rejected'),lang('Show all status incl. rejected events')), 'hideprivate' => array(lang('Hide private infos'),lang('Show all events, as if they were private')), + 'showonlypublic' => array(lang('Hide private events'),lang('Show only events flagged as public, (not checked as private)')), 'no-enum-groups' => array(lang('only group-events'),lang('Do not include events of group members')), ) as $value => $label) {