Commit acf877057db2aca54096dd6b6c5c06757d6893cb

Authored by Elena.Budnik
1 parent 3f34cc52

bug in disable param

Showing 1 changed file with 7 additions and 8 deletions   Show diff stats
php/classes/AmdaAction.php
... ... @@ -310,21 +310,20 @@ class AmdaAction
310 310 if ($child->tagName == 'mission' || $child->tagName == 'observatory') {
311 311 $rank = $child->getAttribute('rank');
312 312 }
313   -
314   - if ($child->hasAttribute('restriction')) {
315   - $disable = $child->getAttribute('restriction') !== 'plotOnly';
316   - if (!$disable) {
317   - $info .= "<br/><b>Plot Only!!!</b>";
318   - }
319   - }
320 313  
  314 + $disable = $child->hasAttribute('group');
  315 +
321 316 if ($disable) {
322   - if ($child->hasAttribute("group") && $child->getAttribute("group") !== "TBD") {
  317 + if ($child->getAttribute("group") !== "TBD") {
323 318 $info .= "<br/><b>Restricted Access</b>";
324 319 }
325 320 else {
326 321 $info .= "<br/><b>Sorry! Not finished yet...</b>";
327 322 }
  323 + }
  324 + else {
  325 + if ($child->hasAttribute('restriction') && $child->getAttribute('restriction') == 'plotOnly')
  326 + $info .= "<br/><b>Plot Only!!!</b>";
328 327 }
329 328  
330 329 $childrenToReturn[] = array('text' => $name, 'id' => $id,'nodeType' => $nodeType, 'info' => $info,
... ...