piersharding / moodle-tool_uploadcourse

** Note** this is now in Moodle core as of 2.6. Moodle Admin Tools plugin for basic upload of course outlines, and applying templates using Moodle course backup files
21 stars 12 forks source link

Fix for adding new (default) enrol instance #8

Closed pauln closed 11 years ago

pauln commented 11 years ago

add_default_instance returns the ID, not an object - so we need to feed its return into $instance->id rather than feeding it directly into $instance.

piersharding commented 11 years ago

Hi Paul -

Thanks for the patch - I've merged it in.

Cheers, Piers Harding.