Skip to content

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

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

$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
@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