Adds filter on Datataset's editor DMP selector to only fetch DMPs with "Draft" status. (Issue #213)

This commit is contained in:
gkolokythas 2019-12-13 13:36:25 +02:00
parent e96c927f94
commit da031838d6
1 changed files with 1 additions and 0 deletions

View File

@ -346,6 +346,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
const dmpDataTableRequest: DataTableRequest<DmpCriteria> = new DataTableRequest(0, null, { fields: fields });
dmpDataTableRequest.criteria = new DmpCriteria();
dmpDataTableRequest.criteria.like = query;
dmpDataTableRequest.criteria.status = DmpStatus.Draft;
return this.dmpService.getPaged(dmpDataTableRequest, "autocomplete").pipe(map(x => x.data));
}