- fixed noderange widget in web ui

- fixed problem with save of db tables

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
bp-sawyers 2009-04-02 17:08:12 +00:00
parent 38c614f84e
commit b0fb4b4bb4
3 changed files with 4 additions and 2 deletions

View File

@ -252,7 +252,7 @@ function doTabrestore($tab, & $data){
$usernode->addChild('username',$_SESSION["username"]);
$usernode->addChild('password',getpassword());
foreach($data as $line){
foreach ($line as &$f) { if (!empty($f) && !preg_match('/^".*"$/', $f)) { $f = '"'.$f.'"'; } }
foreach ($line as &$f) { if (!empty($f) && !ereg("^#", $f) && !preg_match('/^".*"$/', $f)) { $f = '"'.$f.'"'; } }
// Combine the elements of the array, but have to handle sparse arrays
ksort($line, SORT_NUMERIC);

View File

@ -11,6 +11,8 @@ echo "</head><body>\n";
//insertLogin();
dumpGlobals();
echo '<p>'; print_r($_SESSION['editable-hosts']); echo "</p>\n";
//foreach ($_SESSION['editable-deps'] as $key => $val) { trace("$key=$val."); }
/*
$xml = docmd("authcheck","",NULL);

View File

@ -27,7 +27,7 @@ require_once "$TOPDIR/jq/jsonwrapper.php";
$numsubgroups=count($rvals->xcatresponse->intersectinggroups);
$numnodes=count($rvals->xcatresponse->node);
$jdata=array();
if ($numnodes >= $numsubgroups) { #If there are few enough subgroups to be helpful filters, add them in
if ($numnodes >= $numsubgroups || $root==1) { #If there are few enough subgroups to be helpful filters, add them in
foreach ($rvals->xcatresponse->intersectinggroups as $group) {
if (! in_array("$group",$parents)) {
$jdata[]= array("data"=>"$group",