fixed possible double default exam template on creation
This commit is contained in:
parent
35a15ab9b6
commit
6e4a1afd9e
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ public class ExamTemplateDAOImpl implements ExamTemplateDAO {
|
||||||
return Result.tryCatch(() -> {
|
return Result.tryCatch(() -> {
|
||||||
|
|
||||||
checkUniqueName(data);
|
checkUniqueName(data);
|
||||||
|
checkUniqueDefault(data);
|
||||||
|
|
||||||
final Collection<IndicatorTemplate> indicatorTemplates = data.getIndicatorTemplates();
|
final Collection<IndicatorTemplate> indicatorTemplates = data.getIndicatorTemplates();
|
||||||
final String indicatorsJSON = (indicatorTemplates != null && !indicatorTemplates.isEmpty())
|
final String indicatorsJSON = (indicatorTemplates != null && !indicatorTemplates.isEmpty())
|
||||||
|
|
Loading…
Reference in a new issue