Commit 7727e5aa authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor change; allow control_net to be modified too.

parent 85de820c
......@@ -140,8 +140,13 @@ function SPITFORM($node_type, $formfields, $errors)
$osid_result, $formfields[osid]);
echo "<tr>
<td>Control Network Interface:</td>
<td class=left>$formfields[control_net]</td>
<td>Control Network:</td>
<td class=left>
<input type=text
name=\"formfields[control_net]\"
value=\"" . $formfields[control_net] . "\"
size=3>
</td>
</tr>\n";
echo "<tr>
......@@ -312,7 +317,6 @@ if (! isset($submit)) {
# We do not allow these to be changed.
#
$formfields["class"] = $defaults["class"];
$formfields["control_net"] = $defaults["control_net"];
#
# Otherwise, must validate and redisplay if errors. Build up a DB insert
......@@ -387,6 +391,16 @@ if (isset($formfields[osid]) && $formfields[osid] != "") {
}
}
# control_net
if (isset($formfields[control_net]) && $formfields[control_net] != "") {
if (! TBvalid_tinyint($formfields[control_net])) {
$errors["control_net"] = TBFieldErrorString();
}
else {
$inserts["control_net"] = $formfields[control_net];
}
}
# power_time
if (isset($formfields[power_time]) && $formfields[power_time] != "") {
if (! TBvalid_tinyint($formfields[power_time])) {
......
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