bug 13364: Fix security group listing when in projects mode

status 13364: resolved fixed
This commit is contained in:
bfederle 2012-01-27 10:55:47 -08:00
parent 0f333a5124
commit 45a8d4e811
2 changed files with 8 additions and 2 deletions

View File

@ -288,10 +288,16 @@
else if(step5ContainerType == 'select-security-group') {
var securityGroupArray = [];
var data = {
domainid: g_domainid,
account: g_account
};
$.ajax({
url: createURL("listSecurityGroups"+"&domainid="+g_domainid+"&account="+g_account),
url: createURL("listSecurityGroups"),
dataType: "json",
async: false,
data: cloudStack.context.projects ? {} : data,
success: function(json) {
var items = json.listsecuritygroupsresponse.securitygroup;
if (items != null && items.length > 0) {

View File

@ -87,7 +87,7 @@
sectionSelect: {
preFilter: function(args) {
$.ajax({
url: createURL('listNetworks'),
url: createURL('listNetworks', { ignoreProject: true }),
data: {
supportedServices: 'SecurityGroup',
listAll: true