mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 23:11:57 +01:00
* PostgreSQL/Calendar: clicking on InfoLog entries opened new calendar entry instead of existing InfoLog
This commit is contained in:
parent
6eb7b8ca92
commit
345a9bdc52
@ -918,6 +918,11 @@ class calendar_so
|
|||||||
{
|
{
|
||||||
$cols = self::get_columns($required_app,substr($cols,0,-2));
|
$cols = self::get_columns($required_app,substr($cols,0,-2));
|
||||||
}
|
}
|
||||||
|
// remove CAST added for PostgreSQL from eg. "CAST(egw_cal.cal_id AS varchar)"
|
||||||
|
elseif (preg_match('/CAST\(([a-z0-9_.]+) AS [a-z0-9_]+\)/i', $cols, $matches))
|
||||||
|
{
|
||||||
|
$cols = $matches[1];
|
||||||
|
}
|
||||||
elseif (strpos($cols,' AS ') !== false)
|
elseif (strpos($cols,' AS ') !== false)
|
||||||
{
|
{
|
||||||
list(,$cols) = explode(' AS ',$cols);
|
list(,$cols) = explode(' AS ',$cols);
|
||||||
@ -938,6 +943,7 @@ class calendar_so
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//error_log(__METHOD__."(".array2string($app_cols).", ".array2string($required).", '$required_app') returning ".array2string(implode(',',$return_cols)));
|
||||||
return implode(',',$return_cols);
|
return implode(',',$return_cols);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user