You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by da...@apache.org on 2015/05/15 03:45:00 UTC

[3/4] stratos git commit: fix tenant listing null issue

fix tenant listing null issue


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/9f4122a9
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/9f4122a9
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/9f4122a9

Branch: refs/heads/master
Commit: 9f4122a9b623082b5a70e30391900ac929b0aa1b
Parents: 7ebcfa4
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Fri May 15 06:28:28 2015 +0530
Committer: Dakshika Jayathilaka <si...@gmail.com>
Committed: Fri May 15 06:28:28 2015 +0530

----------------------------------------------------------------------
 .../org.apache.stratos.manager.console/console/users_form.jag    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/9f4122a9/components/org.apache.stratos.manager.console/console/users_form.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/users_form.jag b/components/org.apache.stratos.manager.console/console/users_form.jag
index 21a3ec5..e9c8b6d 100644
--- a/components/org.apache.stratos.manager.console/console/users_form.jag
+++ b/components/org.apache.stratos.manager.console/console/users_form.jag
@@ -58,14 +58,14 @@ var leftMenu = menuGenerator(context, menuJson.menu, userPermissions);
 if (elements.formtype == 'users') {
     formTitle = 'User';
     list_data = util.RESTCalls.getUserList();
-    if (list_data && list_data.length === 0) {
+    if (list_data.status == 'error') {
         list_data = null;
     }
 
 } else if (elements.formtype == 'tenants') {
     formTitle = 'Tenant'
     list_data = util.RESTCalls.getTenants();
-    if (list_data && list_data.length === 0) {
+    if (list_data.status == 'error') {
         list_data = null;
     }
 }