Fixes bug on "Dataset Specification" criteria of "Published DMPs".

This commit is contained in:
gkolokythas 2019-11-14 12:23:53 +02:00
parent 0a920fa17e
commit 5285c1a3a6
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public class DataManagmentPlanPublicTableRequest extends TableQuery<DataManageme
, builder.isNull(root.get("grant").get("enddate"))));
}
if (this.getCriteria().datasetProfile != null && !this.getCriteria().datasetProfile.isEmpty())
query.where(((builder, root) -> root.get("profile").get("id").in(this.getCriteria().datasetProfile)));
query.where((builder, root) -> root.join("associatedDmps").get("id").in(this.getCriteria().datasetProfile));
if (this.getCriteria().getDmpOrganisations() != null && !this.getCriteria().getDmpOrganisations().isEmpty())
query.where(((builder, root) -> root.join("organisations").get("reference").in(this.getCriteria().getDmpOrganisations())));
return query;