Closed x-iy closed 1 year ago
Thanks! This was fixed in https://github.com/mdjnelson/moodle-mod_customcert/commit/a851ff6c048b95ebbba051485aa2b482b9977e97. :)
Hi Mark, Sorry for not being clear, but this is a separate issue to the one you mention as fixed.
This issue only occurs when:
The issue doesn't occur when editing from a course activity.
I will create an MR with my suggested fix / workaround.
Thanks. I was able to replicate this, thanks for the PR. Ill comment over there.
With debugging on, receive following error when trying to preview edited template:
In this situation, $customcert = FALSE as
id
doesn't exist therefore$customcert->language
is property of non-object and Notice created for display.Suggested fix: check existence of
$customcert->language
beforehand inclasses/template.php
lines 275 and 335With debugging off, no exception occurs.