Skip to content
Snippets Groups Projects
Commit ec0ff202 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Add configuration option for answer option limit

parent d8cc583d
Branches
Tags
No related merge requests found
...@@ -72,6 +72,9 @@ public class ConfigurationController extends AbstractController { ...@@ -72,6 +72,9 @@ public class ConfigurationController extends AbstractController {
@Value("${features.question-format.grid-square.enabled:false}") @Value("${features.question-format.grid-square.enabled:false}")
private String gridSquareEnabled; private String gridSquareEnabled;
@Value("${answerOptionLimit:8}")
private String answerOptionLimit;
@RequestMapping(value = { "/" }, method = RequestMethod.GET) @RequestMapping(value = { "/" }, method = RequestMethod.GET)
@ResponseBody @ResponseBody
public final HashMap<String, Object> getConfiguration(HttpServletRequest request) { public final HashMap<String, Object> getConfiguration(HttpServletRequest request) {
...@@ -103,6 +106,8 @@ public class ConfigurationController extends AbstractController { ...@@ -103,6 +106,8 @@ public class ConfigurationController extends AbstractController {
config.put("privacyPolicyUrl", privacyPolicyUrl); config.put("privacyPolicyUrl", privacyPolicyUrl);
} }
config.put("answerOptionLimit", Integer.valueOf(answerOptionLimit));
config.put("features", features); config.put("features", features);
features.put("mathJax", "true".equals(mathJaxEnabled)); features.put("mathJax", "true".equals(mathJaxEnabled));
......
...@@ -63,6 +63,9 @@ feedback.cleanup=10 ...@@ -63,6 +63,9 @@ feedback.cleanup=10
# maximal filesize in bytes # maximal filesize in bytes
upload.filesize_b=1048576 upload.filesize_b=1048576
# maximal number of answer options allowed for a skill question
question.answerOptionLimit=8
couchdb.host=localhost couchdb.host=localhost
couchdb.port=5984 couchdb.port=5984
couchdb.name=arsnova couchdb.name=arsnova
......
...@@ -63,6 +63,9 @@ feedback.cleanup=10 ...@@ -63,6 +63,9 @@ feedback.cleanup=10
# maximal filesize in bytes # maximal filesize in bytes
upload.filesize_b=1048576 upload.filesize_b=1048576
# maximal number of answer options allowed for a skill question
question.answerOptionLimit=8
couchdb.host=localhost couchdb.host=localhost
couchdb.port=5984 couchdb.port=5984
couchdb.name=arsnova couchdb.name=arsnova
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment