Add new infolog filter 'private'

This commit is contained in:
Nathan Gray 2014-09-23 22:48:11 +00:00
parent c5d5260d8b
commit cd8f1cdd4f

View File

@ -149,6 +149,7 @@ class infolog_bo
'own-open-overdue' => 'own overdue', 'own-open-overdue' => 'own overdue',
'own-upcoming' => 'own upcoming', 'own-upcoming' => 'own upcoming',
'own-open-upcoming' => 'own open and upcoming', 'own-open-upcoming' => 'own open and upcoming',
'private' => 'private',
'open-today' => 'open(status)', 'open-today' => 'open(status)',
'open-overdue' => 'overdue', 'open-overdue' => 'overdue',
'upcoming' => 'upcoming', 'upcoming' => 'upcoming',
@ -1038,6 +1039,10 @@ class infolog_bo
if (is_int($query['startdate'])) $query['col_filter'][] = 'info_enddate >= '.$GLOBALS['egw']->db->quote($query['startdate']); if (is_int($query['startdate'])) $query['col_filter'][] = 'info_enddate >= '.$GLOBALS['egw']->db->quote($query['startdate']);
if (is_int($query['enddate'])) $query['col_filter'][] = 'info_enddate <= '.$GLOBALS['egw']->db->quote($query['enddate']+(60*60*24)-1); if (is_int($query['enddate'])) $query['col_filter'][] = 'info_enddate <= '.$GLOBALS['egw']->db->quote($query['enddate']+(60*60*24)-1);
} }
elseif ($query['filter'] == 'private')
{
$query['col_filter'][] = 'info_access = ' . $GLOBALS['egw']->db->quote('private');
}
if (!isset($query['date_format']) || $query['date_format'] != 'server') if (!isset($query['date_format']) || $query['date_format'] != 'server')
{ {
if (isset($query['col_filter'])) if (isset($query['col_filter']))