Commit d392c346 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fixes.

parent 9f06d76b
<?php
#
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -129,15 +129,18 @@ function Do_CreateDataSet()
else {
$command .= " -s " . $formfields["dataset_size"];
}
if (! (isset($formfields["dataset_cluster"]) &&
$formfields["dataset_cluster"] != "")) {
$errors["dataset_cluster"] = "Missing field";
}
elseif (!array_key_exists($formfields["dataset_cluster"], $urn_mapping)) {
$errors["dataset_cluster"] = "Illegal value";
}
else {
$command .= " -a '" . $formfields["dataset_cluster"] . "' ";
if (!$embedded) {
if (! (isset($formfields["dataset_cluster"]) &&
$formfields["dataset_cluster"] != "")) {
$errors["dataset_cluster"] = "Missing field";
}
elseif (!array_key_exists($formfields["dataset_cluster"],
$urn_mapping)) {
$errors["dataset_cluster"] = "Illegal value";
}
else {
$command .= " -a '" . $formfields["dataset_cluster"] . "' ";
}
}
}
else {
......
<?php
#
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -156,7 +156,7 @@ echo "<a id='embedded-anchors'
Create a new dataset?</a>
<br>";
echo "<input class='form-control search' type='search'
echo "<input class='form-control search' type='search' data-column='all'
id='dataset_search' placeholder='Search'>\n";
echo " <table class='tablesorter'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment