Minor bugfix

This commit is contained in:
George Kalampokis 2020-03-17 16:40:10 +02:00
parent 37a1253b08
commit 761e6ad078
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ public class DatasetManager {
Dataset dataset1 = apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao().createOrUpdate(dataset);
datasetWizardModel.setId(dataset1.getId());
if (datasetWizardModel.getDmp() == null) {
if (datasetWizardModel.getDmp().getGrant() == null) {
datasetWizardModel.setDmp(new DataManagementPlan().fromDataModelNoDatasets(dataset1.getDmp()));
}
updateTags(apiContext.getOperationsContext().getDatasetRepository(), datasetWizardModel);