Page MenuHomePhabricator

[Regression] BadMethodCallException when creating a quiz that takes zero as an answer
Closed, DuplicatePublic

Description

The following quiz code is causing the page display to return a "BadMethodCallException":

<quiz display=simple>

{Primera pregunta de prueba para validar [[phab:T166439|T166439]] - Quiz extension can't take zero as an answer even if it it correct
|type="{}"}

Este es el texto de la pregunta. Y este es el espacio para responder: { 0 }

</quiz>

It is currently present in esWV sandbox: https://es.wikiversity.org/wiki/Wikiversidad:Zona_de_pruebas

Before the code was not taking the answer but it was not generating the exception.

Event Timeline

Mvolz renamed this task from BadMethodCallException when creating a quiz that takes zero as an answer to [Regression] BadMethodCallException when creating a quiz that takes zero as an answer.Jul 6 2017, 11:07 AM
Mvolz assigned this task to Harjotsingh.
Mvolz triaged this task as High priority.