add status to DmpOverviewModel used in DatasetOverviewModel

This commit is contained in:
gpapavgeri 2020-07-22 17:46:21 +03:00
parent 80bdf5a77b
commit 3d1b0adc6e
1 changed files with 1 additions and 1 deletions

View File

@ -176,12 +176,12 @@ public class DataManagementPlanOverviewModel implements DataModel<DMP, DataManag
this.id = entity.getId().toString(); this.id = entity.getId().toString();
this.label = entity.getLabel(); this.label = entity.getLabel();
this.groupId = entity.getGroupId(); this.groupId = entity.getGroupId();
this.status = entity.getStatus();
return this; return this;
} }
public DataManagementPlanOverviewModel fromDataModelDatasets(DMP entity) { public DataManagementPlanOverviewModel fromDataModelDatasets(DMP entity) {
this.fromDataModel(entity); this.fromDataModel(entity);
this.status = entity.getStatus();
this.version = entity.getVersion(); this.version = entity.getVersion();
this.grant = new GrantOverviewModel().fromDataModel(entity.getGrant()); this.grant = new GrantOverviewModel().fromDataModel(entity.getGrant());
if (entity.getProfile() != null) this.profile = entity.getProfile().getLabel(); if (entity.getProfile() != null) this.profile = entity.getProfile().getLabel();