Skip to content

Fix issues with AJAX functionality in Moodle 4#4

Open
teruselearning wants to merge 2 commits into
call-learning:masterfrom
teruselearning:Moodle-40
Open

Fix issues with AJAX functionality in Moodle 4#4
teruselearning wants to merge 2 commits into
call-learning:masterfrom
teruselearning:Moodle-40

Conversation

@teruselearning
Copy link
Copy Markdown

The way the method customfield_multiselect\data_controller::get_value() was returning an array was causing multiple issues with core AJAX functionality returning course data.
Examples of somewhere this error was occuring is when trying to duplicate a course via 'manage courses and categories', or when trying to fetch a list of courses when adding a meta link enrolment method.
Issues also occured when using Edwiser Bridge.
The solution was to return a string of values using get_value, but preparing the data as an array when using the course edit form.
Not fully tested, but seems to fix the issues I was experiencing without causing issues with the course edit form.

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