Skip to content
Snippets Groups Projects
Commit 1b7cf9b5 authored by Tom Käsler's avatar Tom Käsler Committed by Andreas Gärtner
Browse files

don't check presence of subject when question is a freetext question

parent e045b32e
No related merge requests found
......@@ -414,7 +414,7 @@ Ext.define('ARSnova.view.FreetextQuestion', {
selectAbstentionAnswer: function () {},
isEmptyAnswer: function () {
return this.answerSubject.getValue().trim() === "" || (this.answerText.getValue().trim() === "" && this.questionObj.textAnswerEnabled) || (!this.answerImage && this.questionObj.imageQuestion);
return (this.questionObj.questionType !== "freetext" && this.answerSubject.getValue().trim() === "") || (this.answerText.getValue().trim() === "" && this.questionObj.textAnswerEnabled) || (!this.answerImage && this.questionObj.imageQuestion);
},
saveAnswer: function (answer) {
......
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