mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-10 01:42:33 +01:00
Fix td not closed and js code duplicated (at wrong place)
This commit is contained in:
@@ -1434,7 +1434,8 @@ class ExtraFields
|
||||
$perms=dol_eval($this->attributes[$extrafieldsobjectkey]['perms'][$key], 1);
|
||||
$langfile=$this->attributes[$extrafieldsobjectkey]['langfile'][$key];
|
||||
$list=dol_eval($this->attributes[$extrafieldsobjectkey]['list'][$key], 1);
|
||||
$hidden=(empty($list) ? 1 : 0); // If empty, we are sure it is hidden, otherwise we show. If it depends on mode (view/create/edit form or list, this must be filtered by caller)
|
||||
$help=$this->attributes[$extrafieldsobjectkey]['help'][$key];
|
||||
$hidden=(empty($list) ? 1 : 0); // If $list empty, we are sure it is hidden, otherwise we show. If it depends on mode (view/create/edit form or list, this must be filtered by caller)
|
||||
}
|
||||
else // Old usage
|
||||
{
|
||||
@@ -1449,7 +1450,8 @@ class ExtraFields
|
||||
$perms=dol_eval($this->attribute_perms[$key], 1);
|
||||
$langfile=$this->attribute_langfile[$key];
|
||||
$list=dol_eval($this->attribute_list[$key], 1);
|
||||
$hidden=(empty($list) ? 1 : 0); // If empty, we are sure it is hidden, otherwise we show. If it depends on mode (view/create/edit form or list, this must be filtered by caller)
|
||||
$help=''; // Not supported with old syntax
|
||||
$hidden=(empty($list) ? 1 : 0); // If $list empty, we are sure it is hidden, otherwise we show. If it depends on mode (view/create/edit form or list, this must be filtered by caller)
|
||||
}
|
||||
|
||||
if ($hidden) return ''; // This is a protection. If field is hidden, we should just not call this method.
|
||||
|
||||
Reference in New Issue
Block a user