From 7b582f95dcd17aa268ec72d23d11f57810d20b24 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 25 May 2022 09:41:42 +0200 Subject: [PATCH] if exam name is not available take the externalId as name --- .../webservice/servicelayer/dao/impl/ExamDAOImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java index c5d83172..f9f08492 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java @@ -735,7 +735,9 @@ public class ExamDAOImpl implements ExamDAO { record.getLmsSetupId(), record.getExternalId(), BooleanUtils.toBooleanObject(record.getLmsAvailable()), - record.getQuizName(), + StringUtils.isNotBlank(record.getQuizName()) + ? record.getQuizName() + : Constants.SQUARE_BRACE_OPEN + record.getExternalId() + Constants.SQUARE_BRACE_CLOSE, record.getQuizStartTime(), record.getQuizEndTime(), ExamType.valueOf(record.getType()),