summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-20 15:36:59 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-20 15:36:59 +0545
commit53fc2039a96263c84821f08bc5b1b7698fb19366 (patch)
treeffec8376139f8d34d63e292d38c7a79b85c6f361 /src/usr
parentd3f3b75f1a1a7428600c078540a8ea46cb70f475 (diff)
downloadpfsense-53fc2039a96263c84821f08bc5b1b7698fb19366.zip
pfsense-53fc2039a96263c84821f08bc5b1b7698fb19366.tar.gz
Allow moving last pool entry
If you are moving load balancer pool entries back and forth between the enabled and disabled pools, you can't move the last entry in the disabled pool back to the enabled pool, which you should be able to do. This change also gives the user flexibility to move the last enabled entry to the disabled, that is helpful if the user is just moving entries around - e.g. putting everything into disabled then adding 1 or 2 back to the enabled. On save, the validation checks that the enabled list has something in it, so the user can;t actually save an empty load balancer pool anyway.
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/load_balancer_pool_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/load_balancer_pool_edit.php b/src/usr/local/www/load_balancer_pool_edit.php
index 5f6d220..27fae0a 100644
--- a/src/usr/local/www/load_balancer_pool_edit.php
+++ b/src/usr/local/www/load_balancer_pool_edit.php
@@ -243,7 +243,7 @@ events.push(function() {
var len = From.length;
var option;
- if (len > 1) {
+ if (len > 0) {
for (i=0; i<len; i++) {
if (From.eq(i).is(':selected')) {
option = From.eq(i).val();
OpenPOWER on IntegriCloud