fix extrafield list of fileds

This commit is contained in:
florian HENRY 2017-01-26 15:44:09 +01:00
parent 32ebe8f4d7
commit deceeea8ff

View File

@ -119,12 +119,15 @@ $arrayfields = array(
// Extra fields // Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label)) { if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label)) {
foreach ( $extrafields->attribute_label as $key => $val ) { foreach ( $extrafields->attribute_label as $key => $val ) {
$arrayfields["ef." . $key] = array( $typeofextrafield=$extrafields->attribute_type[$key];
'label' => $extrafields->attribute_label[$key], if ($typeofextrafield!='separate') {
'checked' => $extrafields->attribute_list[$key], $arrayfields["ef." . $key] = array(
'position' => $extrafields->attribute_pos[$key], 'label' => $extrafields->attribute_label[$key],
'enabled' => $extrafields->attribute_perms[$key] 'checked' => $extrafields->attribute_list[$key],
); 'position' => $extrafields->attribute_pos[$key],
'enabled' => $extrafields->attribute_perms[$key]
);
}
} }
} }