-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
explicitly call the 'text' key for the ->recompletionemailbody to capture the text #143
Conversation
Hi David! - this doesn't look quite right - the function local_recompletion_get_data should get called somewhere in there which should prevent this (I don't like the way that code works) but there's probably a bug a bit higher there. |
ah... no that comments not quite right... digging into this a bit more... |
looks like this was caused by this patch (pinging @keevan fyi) the call to local_recompletion_get_data() shouldn't be there - that function prepares the code for the html editor to use - it's not quite right for the config to pass to the notify_user function. I don't recall why that was changed from local_recompletion_get_config() in that patch though - @keevan do you remember? |
Hi @danmarsden, I believe I removed the whole thing during a refactor, but looking back now, the direct $DB call could potentially be replaced by a moodle-local_recompletion/locallib.php Lines 171 to 177 in 9489d6d
|
Hi @danmarsden and @keevan I was thinking that putting back the call to Changing:
With:
I can see Best regards, |
returning to use local_recompletion_get_config looks correct to me for normal usage although we need to check to make sure that function returns "all" config settings as the new period and schedule types might have config settings that don't get pulled through by that call. - eg this list: moodle-local_recompletion/locallib.php Lines 156 to 164 in 9489d6d
may not be a complete list of all config vars including the ones used in the period/schedule types that were added since that patch. |
Hi @danmarsden I have created this PR #144 to address issue #142 putting back Best regards, |
This is a fix for issue #142
If I had to guess, it is only because of PHP 8.1. I don't think this should impact earlier versions of PHP, but have not tested it.