From 79ddd74340327cf45403201d35ebe9c69c202423 Mon Sep 17 00:00:00 2001 From: Vadim Kimlaychuk Date: Wed, 20 May 2015 22:08:29 +0300 Subject: [PATCH] CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules Signed-off-by: Rohit Yadav This closes #271 (cherry picked from commit bede3a87ad39545081b2e17d8d72bd6851a1b9b3) Signed-off-by: Rohit Yadav --- ui/scripts/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 9eaa33a6fb5..1ec1cf70e0e 100755 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -1697,7 +1697,7 @@ name: 'source', description: _l('label.lb.algorithm.source') }]; - if (typeof args.context != 'undefined') { + if (typeof args.context == 'undefined') { data = getLBAlgorithms(args.context.networks[0]); } args.response.success({ @@ -3541,7 +3541,7 @@ name: 'source', description: _l('label.lb.algorithm.source') }]; - if (typeof args.context != 'undefined') { + if (typeof args.context == 'undefined') { data = getLBAlgorithms(args.context.networks[0]); } args.response.success({