1 parent 8e1b8d1 commit 7a2be05Copy full SHA for 7a2be05
1 file changed
ui/scripts/sharedFunctions.js
@@ -675,14 +675,18 @@ cloudStack.api = {
675
},
676
dataProvider: function(args) {
677
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
+ }
686
687
$.ajax({
688
url: createURL('listTags'),
- data: {
- listAll: true,
- resourceId: resourceId,
- resourceType: resourceType
- },
689
+ data: data,
690
success: function(json) {
691
args.response.success({
692
data: json.listtagsresponse ?
0 commit comments