Fix position of fields
This commit is contained in:
parent
25d59cf107
commit
51421a8bf6
@ -5723,7 +5723,6 @@ class Form
|
||||
$lis='';
|
||||
$listcheckedstring='';
|
||||
|
||||
$array = dol_sort_array($array, 'position');
|
||||
foreach($array as $key => $val)
|
||||
{
|
||||
/* var_dump($val);
|
||||
|
||||
@ -134,7 +134,8 @@ if (is_array($extrafields->attribute_label) && count($extrafields->attribute_lab
|
||||
if (! empty($extrafields->attribute_list[$key])) $arrayfields["ef.".$key]=array('label'=>$extrafields->attribute_label[$key], 'checked'=>(($extrafields->attribute_list[$key]<0)?0:1), 'position'=>$extrafields->attribute_pos[$key], 'enabled'=>(abs($extrafields->attribute_list[$key])!=3 && $extrafields->attribute_perms[$key]));
|
||||
}
|
||||
}
|
||||
|
||||
$object->fields = dol_sort_array($object->fields, 'position');
|
||||
$arrayfields = dol_sort_array($arrayfields, 'position');
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user