From 10a5bdab49da4e8d6cb968acebcc76587970c971 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 4 Oct 2012 12:52:45 -0700 Subject: [PATCH] cloudstack UI - regular user in project view - VPC - tier - deploy VM - should pass projectid instead of account parameter to deployVirtualMachine API. --- ui/scripts/instanceWizard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js index 5e4423fbf59..b35369db9d7 100644 --- a/ui/scripts/instanceWizard.js +++ b/ui/scripts/instanceWizard.js @@ -523,7 +523,11 @@ if(args.context.networks != null) { //from VPC tier array1.push("&networkIds=" + args.context.networks[0].id); array1.push("&domainid=" + args.context.vpc[0].domainid); - array1.push("&account=" + args.context.vpc[0].account); + + if(args.context.vpc[0].account != null) + array1.push("&account=" + args.context.vpc[0].account); + else if(args.context.vpc[0].projectid != null) + array1.push("&projectid=" + args.context.vpc[0].projectid); } }