mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
451614016e
Moves the data-filtercondition property to an element that always exists regardless of whether the selected category from the filter has questions or not. This will effectively solve the exception that is being thrown due to the non-existing element and also enable creation of random questions in a category that does not have any questions yet. Also, the data-filtercondition attribute is no longer used when creating a random question in a new category as this value is not relevant in this case. Instead, a default filter condition is generated in the webservice for the random question based on the newly created category.