We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a question is moved from one context to another, images that are embedded in the part's text get lost.
The images should still be there, obviously.
The same happens for files embedded in parts' feedback texts.
When moving the files, we use the $questionid:
$questionid
moodle-qtype_formulas/questiontype.php
Lines 90 to 106 in 32395d9
However, when saving the question, we use $ans->id which is the part's ID.
$ans->id
Line 261 in 32395d9
The text was updated successfully, but these errors were encountered:
This will be fixed with #62.
Sorry, something went wrong.
As a side effect, this means that uploaded files (embedded in parts) will not be removed when the question is deleted.
PhilippImhof
No branches or pull requests
Description of bug / unexpected behavior
When a question is moved from one context to another, images that are embedded in the part's text get lost.
Expected behavior
The images should still be there, obviously.
How to reproduce the issue
The same happens for files embedded in parts' feedback texts.
Additional comments
When moving the files, we use the
$questionid
:moodle-qtype_formulas/questiontype.php
Lines 90 to 106 in 32395d9
However, when saving the question, we use
$ans->id
which is the part's ID.moodle-qtype_formulas/questiontype.php
Line 261 in 32395d9
The text was updated successfully, but these errors were encountered: