mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
show list of all attrdefs if attrdefgrps is empty
This commit is contained in:
parent
c00c0996d2
commit
b89d598c32
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user