ndunand / moodle-enrol_attributes

This plugin allows users to be enrolled according to any value stored in their user profile.
https://moodle.org/plugins/enrol_attributes
18 stars 22 forks source link

no need to use plugin when serializing to JSON, moodle 3.4 compatibility #20

Closed mastnym closed 6 years ago

mastnym commented 6 years ago

Hello Nicolas, I sometimes get $.toJSON is not a function when trying to create or edit new instance of your plugin in moodle 3.4. I don't have much time to investigate. I checked jquery.json and it is useless these days I think. It uses JSON.stringify anyway. So I removed it and replaced the call.

ndunand commented 6 years ago

Thanks @mastnym indeed this is not needed anymore, thanks for sharing!