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

Bugfix/settingsreset #179

Merged
merged 38 commits into from
Jun 6, 2024
Merged

Bugfix/settingsreset #179

merged 38 commits into from
Jun 6, 2024

Conversation

TamaroWalter
Copy link
Contributor

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

discussion.php Outdated Show resolved Hide resolved
mod_form.php Outdated
/**
* constructor
* @see moodleform_mod::moodleform_mod
*/
Copy link
Contributor

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? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it is unnecessary :)

Copy link
Contributor

@NinaHerrmann NinaHerrmann left a 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', ]);
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is added

@NinaHerrmann NinaHerrmann merged commit 3032b86 into master Jun 6, 2024
50 checks passed
@TamaroWalter TamaroWalter deleted the bugfix/settingsreset branch September 5, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants