Skip to content

Commit 7a2be05

Browse files
committed
Pass projectId to listTags, when viewing a project resource
1 parent 8e1b8d1 commit 7a2be05

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

ui/scripts/sharedFunctions.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,18 @@ cloudStack.api = {
675675
},
676676
dataProvider: function(args) {
677677
var resourceId = args.context[contextId][0].id;
678+
var data = {
679+
resourceId: resourceId,
680+
resourceType: resourceType
681+
};
682+
683+
if (args.context.projects) {
684+
data.projectid=args.context.projects[0].id;
685+
}
678686

679687
$.ajax({
680688
url: createURL('listTags'),
681-
data: {
682-
listAll: true,
683-
resourceId: resourceId,
684-
resourceType: resourceType
685-
},
689+
data: data,
686690
success: function(json) {
687691
args.response.success({
688692
data: json.listtagsresponse ?

0 commit comments

Comments
 (0)