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) {
|
||||
|
@ -254,7 +248,6 @@ $(document).ready( function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$arrs = $this->callHook('addDocumentAttributes', $document);
|
||||
if(is_array($arrs)) {
|
||||
foreach($arrs as $arr) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user