mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 03:50:13 +01:00
* Calendar: fixed PostgreSQL error on transfering records of a delted user to an other one
This commit is contained in:
parent
e24dc103f5
commit
38f301e681
@ -1535,7 +1535,7 @@ ORDER BY cal_user_type, cal_usre_id
|
|||||||
foreach($this->db->select($this->user_table,'cal_id',array( // MySQL does NOT allow to run this as delete!
|
foreach($this->db->select($this->user_table,'cal_id',array( // MySQL does NOT allow to run this as delete!
|
||||||
'cal_user_type' => 'u',
|
'cal_user_type' => 'u',
|
||||||
'cal_user_id' => $old_user,
|
'cal_user_id' => $old_user,
|
||||||
"cal_id IN (SELECT cal_id FROM $this->user_table other WHERE other.cal_id=cal_id AND other.cal_user_id=".(int)$new_user." AND cal_user_type='u')",
|
"cal_id IN (SELECT cal_id FROM $this->user_table other WHERE other.cal_id=cal_id AND other.cal_user_id=".$this->db->quote($new_user)." AND cal_user_type='u')",
|
||||||
),__LINE__,__FILE__,false,'','calendar') as $row)
|
),__LINE__,__FILE__,false,'','calendar') as $row)
|
||||||
{
|
{
|
||||||
$ids[] = $row['cal_id'];
|
$ids[] = $row['cal_id'];
|
||||||
|
Loading…
Reference in New Issue
Block a user