Skip to content

Commit

Permalink
Fix visibility of extrafields
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 7, 2017
1 parent 14a43ba commit f8a4443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/extrafields.class.php
Expand Up @@ -1337,7 +1337,7 @@ function showOutputField($key,$value,$moreparam='')
$perms=$this->attribute_perms[$key];
$langfile=$this->attribute_langfile[$key];
$list=$this->attribute_list[$key];
$hidden=(($list != 0) ? 1 : 0); // If zero, 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)
$hidden=(($list == 0) ? 1 : 0); // If zero, 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.

Expand Down

0 comments on commit f8a4443

Please sign in to comment.