Panopto / Moodle-2.0-plugin-for-Panopto

Panopto's integration with the Moodle LMS.
http://www.panopto.com
GNU General Public License v3.0
18 stars 38 forks source link

Errant space in db/event.php for userenrolmentupdated #147

Closed rlorenzo closed 5 years ago

rlorenzo commented 5 years ago

In https://github.com/Panopto/Moodle-2.0-plugin-for-Panopto/blob/2019013100/db/events.php#L49 the code shows:

    array(
        'eventname' => '\core\event\user_enrolment_updated',
        'callback' => 'block_panopto_rollingsync::userenrolmentupdated ',
    ),

That errant space after "userenrolmentupdated" causes the following bug:

Can not execute event observer 'block_panopto_rollingsync::userenrolmentupdated '
line 164 of /lib/classes/event/manager.php: call to debugging()
line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
line 834 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
line 2033 of /lib/enrollib.php: call to core\event\base->trigger()
line 724 of /enrol/database/lib.php: call to enrol_plugin->update_user_enrol()
line 137 of /admin/tool/uclasupportconsole/index.php: call to enrol_database_plugin->sync_enrolments()
jmalmsten-panopto commented 5 years ago

This should be fixed in the latest release, please open a support ticket with Panopto if you encounter any further issues. I will close the associated PR as well.

Thanks, Joe Malmsten