* CalDAV: big calendars with more then 500 events in result-set were missing events

This commit is contained in:
Ralf Becker 2014-11-10 14:21:49 +00:00
parent 2fe41c8c69
commit 0c614b4449

View File

@ -2067,7 +2067,7 @@ class egw_db
$select['table_def'], $select['table_def'],
)); ));
} }
$sql = count($sql) > 1 ? '(' . implode(")\nUNION\n(",$sql).')' : $sql[0]; $sql = count($sql) > 1 ? '(' . implode(")\nUNION\n(",$sql).')' : 'SELECT DISTINCT'.substr($sql[0],6);
if ($order_by) $sql .= (!stristr($order_by,'ORDER BY') ? "\nORDER BY " : '').$order_by; if ($order_by) $sql .= (!stristr($order_by,'ORDER BY') ? "\nORDER BY " : '').$order_by;