Firstly, thanks for developing and maintaining a very useful and easy to use plugin
I think I've found a similar issue. I'm working in both Moodle 3.1 (legacy) & 3.3 (current).
- Create simplecertificate instance for a course named "Course A";
- Students complete the course and receive certificates for "Course A";
- Later the course name is changed to "Course B";
- Previously issued certificates still print "Course A," not "Course B";
This doesn't seem to be a major problem until we try to get the course ID, which is the only reliable reference to the course, by searching for the course name in the mdl_course table. DB records in the mdl_simplecertificate_issues table still show the course name at the time they were recorded rather than the current name. In other words, it's not possible to get any information from the course because the identifier that mdl_simplecertificate_issues uses has changed.
Would it be a good idea to also record the course ID for each certificate issued?