diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-24 20:23:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-24 20:23:01 +0000 |
commit | f110e21e665fc89b7b640bd0fbd520d4a1bf9a33 (patch) | |
tree | b03f092652efbd197ce27075cfec0316789acb1c /usr | |
parent | 73f1f310c5d1dcd15c5e81008acfa7f27deedb55 (diff) | |
download | pfsense-f110e21e665fc89b7b640bd0fbd520d4a1bf9a33.zip pfsense-f110e21e665fc89b7b640bd0fbd520d4a1bf9a33.tar.gz |
Ticket #884
wrong Pool Selectect when editing
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/load_balancer_virtual_server_edit.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php index a073e66..f5509b8 100755 --- a/usr/local/www/load_balancer_virtual_server_edit.php +++ b/usr/local/www/load_balancer_virtual_server_edit.php @@ -153,8 +153,10 @@ include("head.inc"); <td width="78%" class="vtable" colspan="2"> <select id="pool" name="pool"> <?php - for ($i = 0; isset($config['load_balancer']['lbpool'][$i]); $i++) { - echo "<option value=\"{$config['load_balancer']['lbpool'][$i]['name']}\">{$config['load_balancer']['lbpool'][$i]['name']}</option>"; + if ( $config['load_balancer']['lbpool'][$i]['name'] == $pconfig['pool'] ) { + echo "<option value=\"{$pconfig['pool']}\" selected>{$pconfig['pool']}</option>"; + } else { + echo "<option value=\"{$config['load_balancer']['lbpool'][$i]['name']}\">{$config['load_balancer']['lbpool'][$i]['name']}</option>"; } ?> </select> |