diff --git a/views/bootstrap/class.EditDocument.php b/views/bootstrap/class.EditDocument.php index e346d134a..207a21257 100644 --- a/views/bootstrap/class.EditDocument.php +++ b/views/bootstrap/class.EditDocument.php @@ -236,12 +236,6 @@ $(document).ready( function() { } } elseif($attrdefs) { foreach($attrdefs as $attrdef) { - $found = false; - foreach($attrdefgrps as $attrdefgrp) { - if($attrdefgrp['group']->isMember($attrdef)) - $found = true; - } - if($found) { $arr = $this->callHook('editDocumentAttribute', $document, $attrdef); if(is_array($arr)) { if($arr) { @@ -252,7 +246,6 @@ $(document).ready( function() { } else { $this->formField(htmlspecialchars($attrdef->getName()), $this->getAttributeEditField($attrdef, $document->getAttribute($attrdef))); } - } } } $arrs = $this->callHook('addDocumentAttributes', $document);