Fix regression
This commit is contained in:
parent
a6e7a41e98
commit
ba3856f9e9
@ -1886,7 +1886,7 @@ class ExtraFields
|
||||
$out = '<'.$tagtype.' id="trextrafieldseparator'.$key.(!empty($object->id)?'_'.$object->id:'').'" class="trextrafieldseparator trextrafieldseparator'.$key.(!empty($object->id)?'_'.$object->id:'').'">';
|
||||
$out .= '<'.$tagtype_dyn.' '.(!empty($colspan)?'colspan="' . $colspan . '"':'').'>';
|
||||
// Some js code will be injected here to manage the collapsing of extrafields
|
||||
$out .= '<span class="cursorpointer far fa-plus-square"></span> ';
|
||||
$out .= '<span class="cursorpointer far fa-'.($expand_display ? 'minus' : 'plus').'-square"></span> ';
|
||||
$out .= '<strong>';
|
||||
$out .= $langs->trans($this->attributes[$object->table_element]['label'][$key]);
|
||||
$out .= '</strong>';
|
||||
|
||||
@ -141,9 +141,9 @@ class Form
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) {
|
||||
if (empty($notabletag) && $perm) {
|
||||
$ret .= '<table class="nobordernopadding centpercent"><tr><td class="nowrap">';
|
||||
//}
|
||||
}
|
||||
if ($fieldrequired) {
|
||||
$ret .= '<span class="fieldrequired">';
|
||||
}
|
||||
@ -158,10 +158,10 @@ class Form
|
||||
if (!empty($notabletag)) {
|
||||
$ret .= ' ';
|
||||
}
|
||||
//if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) {
|
||||
if (empty($notabletag) && $perm) {
|
||||
$ret .= '</td>';
|
||||
//}
|
||||
if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) {
|
||||
}
|
||||
if (empty($notabletag) && $perm) {
|
||||
$ret .= '<td class="right">';
|
||||
}
|
||||
if ($htmlname && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) {
|
||||
@ -173,12 +173,12 @@ class Form
|
||||
if (!empty($notabletag) && $notabletag == 3) {
|
||||
$ret .= ' ';
|
||||
}
|
||||
if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) {
|
||||
if (empty($notabletag) && $perm) {
|
||||
$ret .= '</td>';
|
||||
}
|
||||
//if (empty($notabletag) && GETPOST('action', 'aZ09') != 'edit'.$htmlname && $perm) {
|
||||
if (empty($notabletag) && $perm) {
|
||||
$ret .= '</tr></table>';
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
return $ret;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user