Skip to content

Commit e434a86

Browse files
authored
🐞 bounded lists with unregular characters in the liste name (#221)
Parent issue: sequentech/meta#4182
1 parent 48c593e commit e434a86

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/models/Models.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
**/
1717
package models
1818

19+
import utils._
20+
import play.api._
1921
import utils.Crypto
2022
import utils.JsonFormatters._
2123
import utils.Validator._
@@ -863,11 +865,10 @@ case class Question(
863865
}.length > 0
864866
}
865867
.map { answer =>
866-
answer.copy(
867-
text = StringEscapeUtils.unescapeHtml4(answer.text)
868-
)
868+
StringEscapeUtils.unescapeHtml4(answer.text)
869869
}
870870
.toSet
871+
Logger.warn(s"answerCategoryNames $answerCategoryNames categoryNames $categoryNames")
871872
assert(
872873
categoryNames == answerCategoryNames,
873874
s"there needs to be one isCategoryList answer for each category when enable_checkable_lists is not 'disabled'"

0 commit comments

Comments
 (0)