Merge pull request #9962 from atm-john/fix_extrafield_view
FIX hidden extrafield
This commit is contained in:
commit
8191df4857
@ -6142,7 +6142,7 @@ abstract class CommonObject
|
|||||||
if (! is_object($form)) $form=new Form($db);
|
if (! is_object($form)) $form=new Form($db);
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
|
|
||||||
if (is_array($extrafields->attributes[$this->table_element]['label']) && count($extrafields->attributes[$this->table_element]['label']) > 0)
|
if (is_array($extrafields->attributes[$this->table_element]['label']) && count($extrafields->attributes[$this->table_element]['label']) > 0)
|
||||||
{
|
{
|
||||||
$out .= "\n";
|
$out .= "\n";
|
||||||
@ -6152,6 +6152,11 @@ abstract class CommonObject
|
|||||||
$e = 0;
|
$e = 0;
|
||||||
foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label)
|
foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label)
|
||||||
{
|
{
|
||||||
|
if (isset($extrafields->attributes[$this->table_element]['list'][$key])
|
||||||
|
&& empty($extrafields->attributes[$this->table_element]['list'][$key]) && $mode == 'view'){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$enabled = 1;
|
$enabled = 1;
|
||||||
if ($enabled && isset($extrafields->attributes[$this->table_element]['list'][$key]))
|
if ($enabled && isset($extrafields->attributes[$this->table_element]['list'][$key]))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user