Skip to content

Commit ec0919a

Browse files
committed
more fixes
1 parent ee1f2b2 commit ec0919a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/broadinstitute/consent/http/service/DatasetService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,10 @@ private Integer updateStudyFromConversion(User user, Dataset dataset,
608608
study.setStudyId(studyId);
609609
} else {
610610
studyId = study.getStudyId();
611+
Integer userId = Objects.nonNull(dataset.getCreateUserId()) ? dataset.getCreateUserId() : user.getUserId();
611612
studyDAO.updateStudy(study.getStudyId(), studyConversion.getName(),
612-
studyConversion.getDescription(), study.getPiName(), study.getDataTypes(),
613-
study.getPublicVisibility(), dataset.getCreateUserId(), Instant.now());
613+
studyConversion.getDescription(), studyConversion.getPiName(), studyConversion.getDataTypes(),
614+
studyConversion.getPublicVisibility(), userId, Instant.now());
614615
}
615616
datasetDAO.updateStudyId(dataset.getDataSetId(), studyId);
616617

0 commit comments

Comments
 (0)