mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 12:59:47 +01:00
"Patch for changing customfields in organisations, whan updating every member in the organisation"
This commit is contained in:
parent
968be31df1
commit
4167181289
@ -778,9 +778,23 @@ class addressbook_bo extends addressbook_so
|
|||||||
}
|
}
|
||||||
if (!$members) return false;
|
if (!$members) return false;
|
||||||
|
|
||||||
|
$ids = array();
|
||||||
|
foreach($members as $member)
|
||||||
|
{
|
||||||
|
$ids[] = $member['id'];
|
||||||
|
}
|
||||||
|
$customfields = $this->read_customfields($ids);
|
||||||
|
|
||||||
$changed_members = $changed_fields = $failed_members = 0;
|
$changed_members = $changed_fields = $failed_members = 0;
|
||||||
foreach($members as $member)
|
foreach($members as $member)
|
||||||
{
|
{
|
||||||
|
if (isset($customfields[$member['id']]))
|
||||||
|
{
|
||||||
|
foreach($this->customfields as $name => $data)
|
||||||
|
{
|
||||||
|
$member['#'.$name] = $customfields[$member['id']][$name];
|
||||||
|
}
|
||||||
|
}
|
||||||
$fields = 0;
|
$fields = 0;
|
||||||
foreach($changed as $name => $value)
|
foreach($changed as $name => $value)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user