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

Set default for option_auto_record for older restores #470

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

smbader
Copy link
Contributor

@smbader smbader commented Mar 16, 2023

When restoring a course containing a zoom activity that existed prior to the auto_recording changes ( #390 ), the option_auto_recording property is not set and runs into a database NULL not allowed error.

The fix in restore_zoom_stepslib.php resolves the issue but I thought it may be safe to add the check within populate_zoom_from_response as well. This second addition may not be needed.

Fixes #455

@smbader smbader added the bug Fixes problems or reduces technical debt label Mar 16, 2023
@smbader smbader self-assigned this Mar 16, 2023
Copy link
Collaborator

@jrchamp jrchamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see that this was able to fix restores from older versions of the plugin.

@jrchamp jrchamp merged commit 869f5e0 into main Mar 16, 2023
@jrchamp jrchamp deleted the null-auto-record branch March 16, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes problems or reduces technical debt
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Can't restore a Moodle course backup if it contains a Zoom activity made with an older version of the plugin
2 participants