summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_virtual_server_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-09-26 13:20:39 -0400
committerjim-p <jimp@pfsense.org>2012-09-26 13:20:39 -0400
commit6e9b046e51f5728b8d8f0182b401476059040d1d (patch)
tree911aacf1b1623c1ca876b2d7f721b196f450e734 /usr/local/www/load_balancer_virtual_server_edit.php
parentfd3515f2b78184125e0f16a4a991660003ff7cd0 (diff)
downloadpfsense-6e9b046e51f5728b8d8f0182b401476059040d1d.zip
pfsense-6e9b046e51f5728b8d8f0182b401476059040d1d.tar.gz
Due to the DHCP pool tag needing to be an array, rename the old LB "pool" variable to something else so it's not interpreted as an array.
Diffstat (limited to 'usr/local/www/load_balancer_virtual_server_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index 01b0ef3..554bf36 100755
--- a/usr/local/www/load_balancer_virtual_server_edit.php
+++ b/usr/local/www/load_balancer_virtual_server_edit.php
@@ -107,7 +107,7 @@ if ($_POST) {
update_if_changed("name", $vsent['name'], $_POST['name']);
update_if_changed("descr", $vsent['descr'], $_POST['descr']);
- update_if_changed("pool", $vsent['pool'], $_POST['pool']);
+ update_if_changed("poolname", $vsent['poolname'], $_POST['poolname']);
update_if_changed("port", $vsent['port'], $_POST['port']);
update_if_changed("sitedown", $vsent['sitedown'], $_POST['sitedown']);
update_if_changed("ipaddr", $vsent['ipaddr'], $_POST['ipaddr']);
@@ -198,11 +198,11 @@ include("head.inc");
<?php if(count($config['load_balancer']['lbpool']) == 0): ?>
<b><?=gettext("NOTE:"); ?></b> <?=gettext("Please add a pool on the Pools tab to use this feature."); ?>
<?php else: ?>
- <select id="pool" name="pool">
+ <select id="poolname" name="poolname">
<?php
for ($i = 0; isset($config['load_balancer']['lbpool'][$i]); $i++) {
$selected = "";
- if ( $config['load_balancer']['lbpool'][$i]['name'] == $pconfig['pool'] )
+ if ( $config['load_balancer']['lbpool'][$i]['name'] == $pconfig['poolname'] )
$selected = " SELECTED";
echo "<option value=\"{$config['load_balancer']['lbpool'][$i]['name']}\"{$selected}>{$config['load_balancer']['lbpool'][$i]['name']}</option>";
}
OpenPOWER on IntegriCloud