Commit c3b207754e091d8088bf6d9c514af191d817e33f
1 parent
55fa3bbc
Exists in
master
and in
92 other branches
not show ID for private
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
php/classes/AmdaAction.php
... | ... | @@ -247,11 +247,6 @@ class AmdaAction |
247 | 247 | $info .= "<br/>Last Updated: : ".$child->getAttribute('lastUpdate'); |
248 | 248 | } |
249 | 249 | } |
250 | - | |
251 | -// if ($child->getAttribute('restriction') > 1) { | |
252 | -// $restricted = $child->getAttribute('restriction'); | |
253 | -// $info .= "<br/><b>Time Restriction</b>: -$restricted days"; | |
254 | -// } | |
255 | 250 | } |
256 | 251 | |
257 | 252 | if ($child->hasAttribute('units')) { |
... | ... | @@ -332,7 +327,8 @@ class AmdaAction |
332 | 327 | if ($isParameter) { |
333 | 328 | $objectMgr = new AliasMgr(); |
334 | 329 | $alias = $objectMgr->getAlias($id); |
335 | - $info .= '</br><i>ID : '.$id.'</i>'; | |
330 | + | |
331 | + if (! ($child->parentNode->hasAttribute('group') || $child->parentNode->parentNode->hasAttribute('group'))) $info .= '</br><i>ID : '.$id.'</i>'; | |
336 | 332 | $childrenToReturn[] = array('text' => $name,'alias' => $alias, |
337 | 333 | 'id' => $id,'nodeType' => $nodeType, 'info' => $info, "component_info" => $component_info, |
338 | 334 | 'globalStart' => $globalStart, 'globalStop' => $globalStop, 'timeRestriction' => $timeRestriction, |
... | ... |