From b89d598c3216e4db93bba57ccf4e966477c67ef9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 23 Jan 2025 14:09:00 +0100 Subject: [PATCH] show list of all attrdefs if attrdefgrps is empty --- views/bootstrap/class.EditDocument.php | 7 ------- 1 file changed, 7 deletions(-) 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);