mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Merge release branch 4.18 to main
* 4.18: server: fix mysql error when list Shared templates for project (#8020)
This commit is contained in:
commit
2e9b3d8e08
@ -3786,6 +3786,9 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
|||||||
}
|
}
|
||||||
} else if (templateFilter == TemplateFilter.sharedexecutable || templateFilter == TemplateFilter.shared) {
|
} else if (templateFilter == TemplateFilter.sharedexecutable || templateFilter == TemplateFilter.shared) {
|
||||||
// only show templates shared by others
|
// only show templates shared by others
|
||||||
|
if (permittedAccounts.isEmpty()) {
|
||||||
|
return new Pair<>(new ArrayList<>(), 0);
|
||||||
|
}
|
||||||
sc.addAnd("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
|
sc.addAnd("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
|
||||||
} else if (templateFilter == TemplateFilter.executable) {
|
} else if (templateFilter == TemplateFilter.executable) {
|
||||||
SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
|
SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user