From b421ab33021fdb5649d26a9ebed2cae748d5e73d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 15 Sep 2009 20:10:51 +0000 Subject: [PATCH] -Correct appearance of nodes at the root due to previous change git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/noderangesource.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-UI/noderangesource.php b/xCAT-UI/noderangesource.php index b9d80feab..afc41a4a3 100644 --- a/xCAT-UI/noderangesource.php +++ b/xCAT-UI/noderangesource.php @@ -39,10 +39,12 @@ require_once "js/jsonwrapper.php"; } } #If there were more groups than nodes, leave the signal to noise ratio down - foreach ($rvals->xcatresponse->node as $node) { - $jdata[] = array("data"=>"$node", + if ($root == 0) { + foreach ($rvals->xcatresponse->node as $node) { + $jdata[] = array("data"=>"$node", "attributes"=>array("id"=>",$node", "rel"=>'node')); + } } # header('Content-type: text/html'); echo json_encode($jdata);