if exam name is not available take the externalId as name

This commit is contained in:
anhefti 2022-05-25 09:41:42 +02:00
parent 99d0b9dcb2
commit 7b582f95dc

View file

@ -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()),