summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-08 10:20:03 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-08 10:21:41 -0500
commit5605a0c434220e5abfbaadc3c4c160f409d94236 (patch)
treedb80c5f9d77c48f0a3d87c18343a8748e2f1a11a /src/usr/local/www
parentb37adaed58f5bab4f8269be0c291c933b26d90f9 (diff)
downloadpfsense-5605a0c434220e5abfbaadc3c4c160f409d94236.zip
pfsense-5605a0c434220e5abfbaadc3c4c160f409d94236.tar.gz
Fixed #5540
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/firewall_shaper.php27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/usr/local/www/firewall_shaper.php b/src/usr/local/www/firewall_shaper.php
index 9783808..1a9b9a9 100644
--- a/src/usr/local/www/firewall_shaper.php
+++ b/src/usr/local/www/firewall_shaper.php
@@ -120,7 +120,6 @@ if ($interface) {
}
}
-
$dontshow = false;
$newqueue = false;
$dfltmsg = false;
@@ -204,16 +203,23 @@ if ($_GET) {
$q = new altq_root_queue();
} else {
$input_errors[] = gettext("Could not create new queue/discipline!");
- }
+ }
- if ($q) {
- $q->SetInterface($interface);
- $sform = $q->build_form();
- $newjavascript = $q->build_javascript();
- unset($q);
- $newqueue = true;
- }
- break;
+ if ($q) {
+ $q->SetInterface($interface);
+ $sform = $q->build_form();
+ $sform->addGlobal(new Form_Input(
+ 'parentqueue',
+ null,
+ 'hidden',
+ $qname
+ ));
+
+ $newjavascript = $q->build_javascript();
+ unset($q);
+ $newqueue = true;
+ }
+ break;
case "show":
if ($queue) {
$sform = $queue->build_form();
@@ -493,7 +499,6 @@ if (!$dfltmsg) {
}
- // Print the form
print($sform);
}
?>
OpenPOWER on IntegriCloud