forked from extern/egroupware
fixed PostgreSQL error on CalDAV PROPFIND: not all selected columns where in GROUP BY clause
This commit is contained in:
parent
b56311dca0
commit
1b8654b57f
@ -511,8 +511,8 @@ class calendar_so
|
||||
if (!$params['enum_recuring'])
|
||||
{
|
||||
$where[] = "$this->user_table.cal_recur_date=0";
|
||||
$group_by = 'GROUP BY '.str_replace('cal_start,','',$cols);
|
||||
$cols = str_replace('cal_start','MIN(cal_start) AS cal_start',$cols);
|
||||
$group_by = 'GROUP BY '.$this->dates_table.'.cal_id';
|
||||
}
|
||||
if ($end) $where[] = 'cal_start < '.(int)$end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user