mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed not working change of comma-separated accounts, eg. info_responsible
This commit is contained in:
parent
51717e5dd9
commit
04a01fccb0
@ -252,14 +252,13 @@ class admin_cmd_change_account_id extends admin_cmd
|
||||
if (!$where) $where = array();
|
||||
$where[] = "$column IS NOT NULL";
|
||||
$where[] = "$column != ''";
|
||||
$db->select($table,'DISTINCT '.$column,$where,__LINE__,__FILE__);
|
||||
$change = array();
|
||||
while(($row = $db->row(true)))
|
||||
foreach($db->select($table,'DISTINCT '.$column,$where,__LINE__,__FILE__) as $row)
|
||||
{
|
||||
$ids = explode(',',$old_ids=$row[$column]);
|
||||
foreach($ids as $key => $id)
|
||||
{
|
||||
if (isset($account_id2change[$id])) $ids[$key] = $account_id2change[$id];
|
||||
if (isset($ids2change[$id])) $ids[$key] = $ids2change[$id];
|
||||
}
|
||||
$ids = implode(',',$ids);
|
||||
if ($ids != $old_ids)
|
||||
|
Loading…
Reference in New Issue
Block a user