Commit dbfff507 authored by Côme Chilliet's avatar Côme Chilliet Committed by Mortier Benoit
Browse files

Not displaying invisible attributes in a composite attribute

parent 39dfe936
......@@ -2477,7 +2477,9 @@ class CompositeAttribute extends Attribute
$display = "";
foreach ($this->attributes as &$attribute) {
$attribute->setDisabled($this->disabled);
$display .= '<label for="'.$attribute->getForHtmlId().'">'.$attribute->getLabel().'</label>'." ".$attribute->renderFormInput()." ";
if ($attribute->isVisible()) {
$display .= '<label for="'.$attribute->getForHtmlId().'">'.$attribute->getLabel().'</label>'." ".$attribute->renderFormInput()." ";
}
}
unset($attribute);
return $display;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment