"Patch for changing customfields in organisations, whan updating every member in the organisation"

This commit is contained in:
Stefan Becker 2008-06-12 17:40:19 +00:00
parent 968be31df1
commit 4167181289

View File

@ -778,9 +778,23 @@ class addressbook_bo extends addressbook_so
}
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;
foreach($members as $member)
{
if (isset($customfields[$member['id']]))
{
foreach($this->customfields as $name => $data)
{
$member['#'.$name] = $customfields[$member['id']][$name];
}
}
$fields = 0;
foreach($changed as $name => $value)
{