fixed PostgreSQL error on CalDAV PROPFIND: not all selected columns where in GROUP BY clause

This commit is contained in:
Ralf Becker 2011-04-10 13:11:33 +00:00
parent b56311dca0
commit 1b8654b57f

View File

@ -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;