forked from extern/egroupware
Get new custom fields ordering properly too
This commit is contained in:
parent
f098f5c368
commit
7e9b83d280
@ -367,10 +367,16 @@ class egw_customfields implements IteratorAggregate
|
||||
|
||||
// Check to see if field order needs to be re-done
|
||||
$update = array();
|
||||
if($cf['id'])
|
||||
{
|
||||
|
||||
$cfs = egw_customfields::get($cf['app'], true);
|
||||
$old = $cfs[$cf['name']];
|
||||
|
||||
// Add new one in for numbering
|
||||
if(!$cf['id'])
|
||||
{
|
||||
$cfs[$cf['name']] = $cf;
|
||||
}
|
||||
|
||||
if($old['order'] != $cf['order'] || $cf['order'] % 10 !== 0)
|
||||
{
|
||||
$cfs[$cf['name']]['order'] = $cf['order'];
|
||||
@ -395,7 +401,6 @@ class egw_customfields implements IteratorAggregate
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
self::$db->$op(self::TABLE, array(
|
||||
'cf_label' => $cf['label'],
|
||||
|
Loading…
Reference in New Issue
Block a user