From 9f8a09ace12f9aa3b271a157c84eaac88adb56b5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 21 Mar 2005 17:31:22 +0000 Subject: Correctly save and restore parent queue association. --- usr/local/www/firewall_shaper_queues_edit.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php index ebadde8..48c07d0 100755 --- a/usr/local/www/firewall_shaper_queues_edit.php +++ b/usr/local/www/firewall_shaper_queues_edit.php @@ -74,6 +74,7 @@ if (isset($id)) { $pconfig['bandwidth'] = $a_queues[$id]['bandwidth']; $pconfig['bandwidthtype'] = $a_queues[$id]['bandwidthtype']; $pconfig['associatedrule'] = $a_queues[$id]['associatedrule']; + $pconfig['attachtoqueue'] = $a_queues[$id]['attachtoqueue']; } } @@ -115,6 +116,7 @@ if ($_POST) { $queue['upperlimit2'] = $_POST['upperlimit2']; $queue['upperlimit1'] = $_POST['upperlimit1']; $queue['parentqueue'] = $_POST['parentqueue']; + $queue['attachtoqueue'] = $_POST['attachtoqueue']; $queue['associatedrule'] = $_POST['associatedrule']; $scheduleroptions=""; $queue['rio'] = $_POST['rio']; @@ -173,6 +175,7 @@ if ($_POST) { $linkshare3 = $pconfig["linkshare3"]; $parentqueue = $pconfig["parentqueue"]; $defaultqueue = $pconfig["defaultqueue"]; + $attachtoqueue = $pconfig['attachtoqueue']; $parent = $pconfig["parent"]; ?>

Firewall: Traffic shaper: Edit queue

@@ -251,10 +254,10 @@ if ($_POST) { Parent queue (CBQ or HFSC only): - " . $pconfig['shaper']['childqueue'] . ""; + if($pconfig['attachtoqueue'] <> "") + echo ""; else echo ""; if (is_array($config['shaper']['queue'])) { -- cgit v1.1