Skip to content

Commit 545d2e4

Browse files
committed
Change removed field annotation in TemplateJoinVO to remove workaround
for not showing removed entries.
1 parent 8ad517c commit 545d2e4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎server/src/com/cloud/api/query/QueryManagerImpl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,8 +2681,8 @@ else if (keyword != null) {
26812681
sc.addAnd("templateType", SearchCriteria.Op.NEQ, Storage.TemplateType.SYSTEM);
26822682
}
26832683

2684-
// don't return removed template
2685-
sc.addAnd("removed", SearchCriteria.Op.NULL);
2684+
// don't return removed template, this should not be needed since we changed annotation for removed field in TemplateJoinVO.
2685+
//sc.addAnd("removed", SearchCriteria.Op.NULL);
26862686

26872687
// search unique templates and find details by Ids
26882688
Pair<List<TemplateJoinVO>, Integer> uniqueTmplPair = _templateJoinDao.searchAndCount(sc, searchFilter);

‎server/src/com/cloud/api/query/vo/TemplateJoinVO.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class TemplateJoinVO extends BaseViewVO implements ControlledViewEntity {
8383
@Column(name="created_on_store")
8484
private Date createdOnStore = null;
8585

86-
@Column(name=GenericDao.REMOVED)
86+
@Column(name=GenericDao.REMOVED_COLUMN)
8787
@Temporal(TemporalType.TIMESTAMP)
8888
private Date removed;
8989

0 commit comments

Comments
 (0)