Add new infolog filter 'private\'

This commit is contained in:
Hadi Nategh 2014-10-01 15:42:30 +00:00
parent 0159f41877
commit 814400e861

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']))