Fix column not visible after switching column when visibility=3
This commit is contained in:
parent
9729b3a1c7
commit
d80764a179
@ -84,7 +84,9 @@ foreach ($object->fields as $key => $val)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (abs($val['visible']) != 1) continue; // Discard such field from form
|
||||
// Discard if extrafield is a hidden field on form
|
||||
if (abs($val['visible']) != 1 && abs($val['visible']) != 3 && abs($val['visible']) != 4) continue;
|
||||
|
||||
if (array_key_exists('enabled', $val) && isset($val['enabled']) && !$val['enabled']) continue; // We don't want this field
|
||||
if (in_array($key, array('ref', 'status'))) continue; // Ref and status are already in dol_banner
|
||||
|
||||
|
||||
@ -371,7 +371,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
print '<table class="border centpercent">'."\n";
|
||||
|
||||
// Common attributes
|
||||
//$keyforbreak='fieldkeytoswitchonsecondcolumn';
|
||||
//$keyforbreak='fieldkeytoswitchonsecondcolumn'; // We change column just after this field
|
||||
//unset($object->fields['fk_project']); // Hide field already shown in banner
|
||||
//unset($object->fields['fk_soc']); // Hide field already shown in banner
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_view.tpl.php';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user