Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Changes to use Moodle's qbank exporttoxml script instead of custom code #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

AnupamaSarjoshi
Copy link
Contributor

Hi Richard,

While testing we found that the 'Export this question' link on questiontestrun.php is throwing the below mentioned deprecation error. And also, noticed Coderunner was using it's own script to download the export of a single question. But, since we now have standard Moodle script and to avoid a lot of custom code, deleting the coderunner's exportone.php and using Moodle's script instead. Could you please review the fix if that looks good?

I was not sure whether to send the pull request on master or development branch. Did it on master branch.
Kindly let me know if you want me to send the patch on development branch, will change it accordingly.

Error:
Class 'question_edit_contexts' has been renamed for the autoloader and is now deprecated. Please use 'core_question\local\bank\question_edit_contexts' instead.
line 153 of /lib/classes/component.php: call to debugging()
line 57 of /question/type/coderunner/exportone.php: call to core_component::classloader()

Warning: Undefined property: stdClass::$status in /var/www/html/moodle/question/format.php on line 962

Coderunner had it's own script to download the export of a single
question. But to avoid a lot of custom code and use standard Moodle
script, deleting the coderunner's exportone.php and using Moodle's
instead.
@trampgeek trampgeek merged commit 1b024b0 into trampgeek:master Feb 5, 2024
@trampgeek
Copy link
Owner

Nice! Thanks Anupama.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants