Skip to content
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

Confirm restore popup fragment rendering error when system context ID is not 1 #228

Open
wants to merge 1 commit into
base: MOODLE_42_STABLE
Choose a base branch
from

Conversation

mgerszew
Copy link

Fix issue with rendering the popup to confirm restore on Moodle installs where the system context.id is not 1.

Add the course contextid to the block renderer in classes/output/block/content.php and in templates/block/content.mustache Update amd/src/app/block/element.js using the data-contextid attribute when rendering the modal fragment instead of assuming the context.id=1

…lls where the system context.id is not 1.

Add the course contextid to the block renderer in classes/output/block/content.php and in templates/block/content.mustache
Update amd/src/app/block/element.js using the data-contextid attribute when rendering the modal fragment instead of assuming the context.id=1
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.

1 participant