Syntax error caused by setting text field length to shorter than longest possible answer shows escaped html instead of <
Closed, ResolvedPublic

Description

This was caused by the mustache template switch (https://gerrit.wikimedia.org/r/#/c/344726/) which now displays the html encoding instead of the < character, but I think this error is really unhelpful anyway; we should have a message like "Text field length must exceed length of longest answer."

Mvolz created this task.Jun 11 2017, 6:47 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 11 2017, 6:47 AM
Mvolz triaged this task as High priority.Jun 11 2017, 6:47 AM

Change 358227 had a related patch set uploaded (by Harjotsingh; owner: Harjotsingh):
[mediawiki/extensions/Quiz@master] Remove escaped HTML of < inside text field when field length shorter than answer

https://gerrit.wikimedia.org/r/358227

Made a change to fix the error.
Currently all syntax error has the same message.We can add new messages to i18n/en.json for different errors which can then be used accordingly.

Change 358227 merged by jenkins-bot:
[mediawiki/extensions/Quiz@master] Remove escaped HTML of < inside text field when field length shorter than answer

https://gerrit.wikimedia.org/r/358227

Harjotsingh closed this task as Resolved.Jun 17 2017, 2:27 PM