-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue #93: Add support for customfield backup/restore #119
Conversation
63850ba
to
0e78958
Compare
* | ||
* @param int $instanceid id of the instance or 0 if the instance is being created | ||
* @return \context | ||
*/ | ||
public function get_instance_context(int $instanceid = 0): \context { | ||
return $this->get_configuration_context(); | ||
$modinfo = get_coursemodule_from_instance('cms', $instanceid); |
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.
What happens here if $instanceid = 0
does it fail/explode? Or is the understanding that $instanceid
can never be 0?
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.
It's never zero.
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 put in a extra check, just in case.
0e78958
to
721c41b
Compare
Just a reminder this needs another look. Cheers. |
721c41b
to
807bc31
Compare
I just did a check and everything still works. OK to have reviewed and merged. |
Hi @jaypha any further updates on this? Would you like me to review? Cheers. |
0ea4aeb
to
4cc8e25
Compare
4cc8e25
to
92177ad
Compare
Yeah. Sure. It is ready now. Unit tests have been implemented for fields and userlist, which use custom fields. |
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.
Unit tests pass, manual testing works, changes look fine to me. Approving.
Resolves #93