Moodle Plugins directory: Questions bulk update (Legacy) | Moodle.org
Questions bulk update (Legacy)
Local plugins ::: local_questionbulkupdate
Maintained by
Vadim Dvorovenko
Part of set Question bank improvements.
Bulk update of some question options.
Latest release:
77 sites
53 downloads
5 fans
Current versions available: 2
For Moodle 4.0+ use qbank_bulkupdate.
This plugin is intended to update questions after import from formats, that do not allow to specify numbering or
default grade. Question bank navigation node will be extended with "Questions bulk update" item. Select category with
desired questions and fill options, that you want to update.
Useful links
Contributors
Vadim Dvorovenko (Lead maintainer)
Please login to view contributors details and/or to contact them
It's a real time saver! I've been struggling with this issue when importing quiz questions.
Sorry, but i do not know, if i'll ever have time to do such improvements. But i'm allways open for pull requests, and ready to help any developer, intrested in extending this plugin
In Moodle 4.0, the question bank has changed quite a lot (see https://docs.moodle.org/dev/Question_bank_improvements_for_Moodle_4.0).
In particular, there is a new type of plugin: qbank_.... This should be documented at https://docs.moodle.org/dev/Question_bank_plugins, but I am afraid that this is not complete yet. (However, there is information in the upgrade.txt files in the code, and the PHPdocs in the code should explain things.)
So, I think it is a case of
Bad news: you will have to re-write all your local plugins as qbank plugins to work with Moodle 4.0+.
Good news: if you do, then they will probably work even better for users and you can probably reuse almost all of your code.
There are a lot of references in question/bank directory in Moodle 4.0 repository. Please do not hesitate to get in touch if you have any questions.
Cheers!
Even when I open the URL manualy, the following database error appear when I click update:
Field "category" does not exist in table "question"
More information about this error
Debug info:
Error code: ddlfieldnotexistDismiss this notification
Stack trace:
line 680 of /lib/dml/moodle_database.php: dml_exception thrown
line 1349 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
line 107 of /local/questionbulkupdate/classes/helper.php: call to moodle_database->get_recordset()
line 60 of /local/questionbulkupdate/classes/helper.php: call to local_questionbulkupdate\helper->update_questions_in_category()
line 60 of /local/questionbulkupdate/bulkupdate.php: call to local_questionbulkupdate\helper->bulk_update()