Wikimedia

Quiz extension: The Submit button on a single quiz should not grade all quizzes on the page

The Git commit I69d95d153d6d1da1e019ae5ad2c3e7a4667971b5 in MediaWiki's Quiz extension for some reason now causes all quizzes on a page to be graded at once. You can verify this yourself by checking out the previous commit, verifying that only one Quiz is graded when you hit the submit button on a wiki page containing multiple quizzes, and checking out the later commit and verifying that all the quizzes are graded once any one submit button is hit. You should fix this bug.

== Getting started ==

Install mediawiki locally. It is easiest (often) to use Vagrant for this. Quiz is not available as a role in vagrant, so follow these directions to manually add lines to LocalSettings.php in vagrant, and include the line:

require_once("$IP/extensions/Quiz/Quiz.php");

You can test that the extension is working by adding a sample quiz to your test wiki in wikitext.Y ou can export and then import the Help page from Wikiversity for more comprehensive testing.

You can find the quiz extension in the vagrant repository by navigating to mediawiki/extensions/Quiz. If you haven't already, you will need to set up git, gerrit, and git-review, and install a gerrit hook to begin submitting commits to the Quiz extension.

Please also read the Phabricator task for more information.

Task tags

  • php
  • css

Students who completed this task

Phantom42

Task type

  • code Code
close

2016