mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fix custom field order renumbering to keep at multiples of 10, and handle cached custom fields
This commit is contained in:
parent
966e574c42
commit
b16047bde2
@ -370,9 +370,10 @@ class egw_customfields implements IteratorAggregate
|
||||
if($cf['id'])
|
||||
{
|
||||
$cfs = egw_customfields::get($cf['app'], true);
|
||||
$old = $cfs[$cf['id']];
|
||||
if($old['order'] != $cf['order'])
|
||||
$old = $cfs[$cf['name']];
|
||||
if($old['order'] != $cf['order'] || $cf['order'] % 10 !== 0)
|
||||
{
|
||||
$cfs[$cf['name']]['order'] = $cf['order'];
|
||||
uasort($cfs, function($a1, $a2){
|
||||
return $a1['order'] - $a2['order'];
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user