Minor bugfix
This commit is contained in:
parent
37a1253b08
commit
761e6ad078
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue