From a4dd6e3a4dedd6269c883637dc6b22e72f45e96f Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Fri, 1 Apr 2011 02:29:45 +0200 Subject: [PATCH] Bug #554: Added array type check Arrays arguments are objects as well, but we can print them easily though. --- src/sunstone/public/js/sunstone-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index 6e847130be..bc08173e41 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -167,7 +167,7 @@ function notifySubmit(action, args, extra_param){ var action_text = action.replace(/OpenNebula\./,'').replace(/\./,' '); var msg = "

Submitted

"; - if (typeof args == 'object'){ + if (!args || (typeof args == 'object' && args.constructor != Array)){ msg += action_text; } else { msg += action_text + ": " + args;