From 8c0be2e34a405d1ad55bc7cdf69f8e1c5b127e60 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 5 Dec 2011 15:50:57 -0800 Subject: [PATCH] bug 12243: cloudStack 3.0 new UI - system - use a different way to get ID for view console of systemVM. --- ui/scripts/system.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index e8d36f03813..b1981814645 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -3945,11 +3945,11 @@ label: 'View console', action: { externalLink: { - url: function(args) { - return clientConsoleUrl + '?cmd=access&vm=' + args.data.id; + url: function(args) { + return clientConsoleUrl + '?cmd=access&vm=' + args.context.systemVMs[0].id; }, title: function(args) { - return args.data.systemvmtype + ' console'; + return args.context.systemVMs[0].systemvmtype + ' console'; }, width: 820, height: 640