SEBSERV-399 fixed
This commit is contained in:
parent
bd7cec2f66
commit
9032549f59
2 changed files with 8 additions and 2 deletions
|
@ -402,13 +402,13 @@ public class ConfigurationNodeDAOImpl implements ConfigurationNodeDAO {
|
|||
isEqualTo(data.name))
|
||||
.and(
|
||||
ConfigurationNodeRecordDynamicSqlSupport.type,
|
||||
isNotEqualTo(data.type.name()))
|
||||
isEqualTo(data.type.name()))
|
||||
.and(
|
||||
ConfigurationNodeRecordDynamicSqlSupport.id,
|
||||
isNotEqualTo(data.id))
|
||||
.and(
|
||||
ConfigurationNodeRecordDynamicSqlSupport.institutionId,
|
||||
isNotEqualTo(data.institutionId))
|
||||
isEqualTo(data.institutionId))
|
||||
.build()
|
||||
.execute();
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ import ch.ethz.seb.sebserver.gbl.model.sebconfig.Configuration;
|
|||
import ch.ethz.seb.sebserver.gbl.model.sebconfig.ConfigurationAttribute;
|
||||
import ch.ethz.seb.sebserver.gbl.model.sebconfig.ConfigurationNode;
|
||||
import ch.ethz.seb.sebserver.gbl.model.sebconfig.ConfigurationNode.ConfigurationStatus;
|
||||
import ch.ethz.seb.sebserver.gbl.model.sebconfig.ConfigurationNode.ConfigurationType;
|
||||
import ch.ethz.seb.sebserver.gbl.model.sebconfig.ConfigurationTableValues;
|
||||
import ch.ethz.seb.sebserver.gbl.model.sebconfig.ConfigurationValue;
|
||||
import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile;
|
||||
|
@ -426,6 +427,11 @@ public class ExamConfigServiceImpl implements ExamConfigService {
|
|||
"The Type of ConfigurationNode cannot change after creation");
|
||||
}
|
||||
|
||||
if (configurationNode.type == ConfigurationType.TEMPLATE) {
|
||||
// No configuration template specific checks for now
|
||||
return configurationNode;
|
||||
}
|
||||
|
||||
// if configuration is in use, "Ready to Use" is not possible
|
||||
if (configurationNode.status == ConfigurationStatus.READY_TO_USE) {
|
||||
if (!this.examConfigurationMapDAO
|
||||
|
|
Loading…
Reference in a new issue