mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
Add new infolog filter 'private\'
This commit is contained in:
parent
0159f41877
commit
814400e861
@ -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']))
|
||||||
|
Loading…
Reference in New Issue
Block a user