-
Notifications
You must be signed in to change notification settings - Fork 22
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
Bugfix/settingsreset #179
Bugfix/settingsreset #179
Conversation
mod_form.php
Outdated
/** | ||
* constructor | ||
* @see moodleform_mod::moodleform_mod | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the parent already does this could you double-check if this is necessary? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is unnecessary :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check if the other tables are correct and which data might be reasonable for exclusion :)
|
||
$posts = new backup_nested_element('posts'); | ||
|
||
$post = new backup_nested_element('post', ['id'], [ | ||
'parent', 'userid', 'created', 'modified', | ||
'mailed', 'message', 'messageformat', 'attachment']); | ||
'mailed', 'message', 'messageformat', 'attachment', ]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misses reviewed and time reviewed in case we want to also backup that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is added
Issue: #177
Found problem: While importing a course into another, moodle uses the backup-functions from a module. The stepslib in moodleoverflow defines, which columns of a datatable are being backed-up. In that definition some columns of moodleoverflow table where missing, including the grademax and anonymous setting.
Solution: Adding the columns to the backup-function. After that the anonymous and grademax settings functions as they should