lsuonline / lsuce-block_quickmail

5 stars 32 forks source link

Module is broken in Moodle 4.2 #63

Closed der-martin85 closed 1 year ago

der-martin85 commented 1 year ago

The block does not appear in courses. Installation showed no problems. I'm using php 8.1 and Moodle 4.2+ (20230504).

der-martin85 commented 1 year ago

I fixed it, by changing in the file classes/plugin.php the method user_can_send. It seems the return value of get_class($context) has changed. It does not return 'context_course', but 'core\context\course'.

Syxton commented 1 year ago

@der-martin85 You should rebase your changes to the current master and only include 4.2 compatibility fixes.

der-martin85 commented 1 year ago

I made a new pull request #65

ChaoticDalo commented 1 year ago

Fix has been merged into master and release/MOODLE_421_STABLE