show list of all attrdefs if attrdefgrps is empty

This commit is contained in:
Uwe Steinmann 2025-01-23 14:09:00 +01:00
parent c00c0996d2
commit b89d598c32

View File

@ -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) {
@ -254,7 +248,6 @@ $(document).ready( function() {
}
}
}
}
$arrs = $this->callHook('addDocumentAttributes', $document);
if(is_array($arrs)) {
foreach($arrs as $arr) {