openequella / moodle-mod_openEQUELLA

Moodle module for integration with openEQUELLA
https://openequella.github.io/moodle-mod_openEQUELLA/
GNU General Public License v3.0
6 stars 16 forks source link

Missing required function equella_update_grades in lib.php #78

Closed troywilliams closed 3 years ago

troywilliams commented 4 years ago

Missing required function equella_update_grades in lib.php

Stacktrace:

You have declared one of equella_grade_item_update and equella_update_grades but not both. This will cause broken behaviour. • line 1401 of /lib/gradelib.php: call to debugging() • line 1367 of /lib/gradelib.php: call to grade_update_mod_grades() • line 1121 of /lib/gradelib.php: call to grade_grab_course_grades() • line 2006 of /lib/enrollib.php: call to grade_recover_history_grades() • line 207 of /enrol/cohort/locallib.php: call to enrol_plugin->enrol_user() • line 120 of /enrol/cohort/lib.php: call to enrol_cohort_sync() • line 96 of /enrol/editinstance.php: call to enrol_cohort_plugin->add_instance()

Platform:

Moodle version = 2019052009.00 (v3.7.9) Plugin version = 2019050800;

To Reproduce:

  1. Enable cohort sync enrolment method
  2. Create a system cohort
  3. Add students to cohort
  4. Create a course
  5. Add cohort sync enrolment method to course, choose cohort previously created
edalex-ian commented 4 years ago

Heya @troywilliams

Thanks for raising the issue!

Just a quick check on the impact. Does it just result in stacktraces, or does it also impact your moodle and/or the oEQ Moodle Module from functioning?

Thank you.

troywilliams commented 3 years ago

I don't think the function has an impact on module functioning that I know of. This message only displays with the developer debugging turned on. There is no real information or indication to why this would cause broken behaviour.

If you leave this open I can work on the fix when I get a few minutes spare ;-) The fix looks straight forward based on having a quick at other modules implementation.

Cheers

edalex-ian commented 3 years ago

Excellent, that'd be great thanks @troywilliams

(Just to check, have you signed the Apereo CLA? It's a requirement for use to accept code contributions.)

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.