catalyst / moodle-mod_reengagement

Allows timed release of content and emails users to remind them to complete a course activity
23 stars 39 forks source link

Notifications are send out after editing an existing instance of reengagement #156

Closed jbs1 closed 2 months ago

jbs1 commented 2 months ago

Hey,

So i have setup my mod instance to sent out a notification base on a time and activity completion. So I setup the instance to notifiy on completion and setup the reengagement duration to something like 1 minute. Then I set the restrict access to a specific time and the respective activity completion. This seems to work fine. So it makes the reengagement activity available when the specificed time is up and the activity completion condition is also met and then it sets the reengagement to complete, after the restrict access conditions are meet, and 1 minute later it sends out the messages..

However this seems to only work when i setup the reengagement the first time. When i tried to change for example the restrict access conditions it will mark all users immediately as complete on saving and send out the notifications regardless of what the restrict access says.

This seems to be kinda weird behaviour.

Repro Steps

danmarsden commented 2 months ago

Thanks - this is basically a duplicate of #52 - if you have internal development capabilities, pull requests are always welcome, alternatively feel free to reach out privately if you would like to fund improvements to the plugin - thanks!