Skip to content

Conversation

@davosmith
Copy link

...h 'definition_after_data' to prevent warning message in Moodle 2.2

I noticed a warning message when using the block in Moodle 2.2 (related to a missing 'bui_editingatfrontpage' element in edit_form.php). On further investigation I found that the 'definition' function had been overridden by an old Moodle 2.0 version, in order to remove one option from the drop-down 'bui_contexts' select element.

I've removed this override and replaced it with a 'definition_after_data' function that removes that single option from the 'bui_contexts' element before the form is displayed.

I've cherry-picked the change to both the _DEV and _STABLE branches (let me know if you want me to submit a separate pull request for the _STABLE branch).

davosmith and others added 2 commits February 22, 2012 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant