A Moodle question bank plugin to import a singe question from a Moodle XML file as a new version of an exsiting question, rather than a separate question
Hello,
when trying to import questions of type CLOZE I get the error message: Coding error detected, it must be fixed by a programmer: Invalid context id specified context::instance_by_id()
Please can you provide a quick fix - I have to update a lot of questions until next week.
Thank you
Martin
So far, we just implemented the minimum useful thing. Already, we have the following ideas to make it better. (Normally, I woudl create these as separate issues, but for now, I just want to brain-dump a list before I forget, with no immediately plan to work on it, so I will leave this as a single list here.)
Are we using the best possibly icon for the action in the menu? Check to see if there is a more appropriate one.
Currently, if the file cannot be imported, we just throw an exception. Really, this should be checked in form validation, and reported nicely to the user.
We would like to add a <select> setting to the form: "State for the new version" with choices "draft" and "ready" and make it work.
We would like to add a CLI script and/or a web service that can be used to trigger "Import as new version" automatically.
We would like to add a question bank bulk action, to allow several questions to be updated in a single import.