Satisfy postgres about integer not comparable to varchar

This commit is contained in:
Hadi Nategh 2017-03-20 18:06:00 +01:00
parent 2e152294c3
commit ab787243b9

View File

@ -897,7 +897,9 @@ class calendar_so
{
$order = ($GLOBALS['egw_info']['user']['preferences']['common']['account_display'] == 'lastname' ? 'n_family' : 'n_fileas');
$cols .= ",egw_addressbook.{$order}";
$join .= "LEFT JOIN egw_addressbook ON egw_addressbook.account_id = {$this->user_table}.cal_user_id";
$join .= "LEFT JOIN egw_addressbook ON ".
($this->db->Type == 'pgsql'? "egw_addressbook.account_id::varchar = ":"egw_addressbook.account_id = ").
"{$this->user_table}.cal_user_id";
$params['order'] = "$order, cal_non_blocking DESC";
}
else if ($params['order'] == 'categories , cal_non_blocking DESC')