Skip to content

Commit d67a70f

Browse files
Show the issue's name on the certificate verification page
1 parent 356460c commit d67a70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/output/verify_certificate_result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __construct($issue) {
9090
$this->viewurl = template::view_url($issue->code);
9191
$this->userprofileurl = new \moodle_url('/user/view.php', ['id' => $issue->userid]);
9292
$this->userfullname = @json_decode($issue->data, true)['userfullname'];
93-
$this->certificatename = $issue->certificatename;
93+
$this->certificatename = $issue->name ?? $issue->certificatename;
9494
$strftimedatetime = get_string("strftimedatetime", "langconfig");
9595
$this->timecreated = userdate($issue->timecreated, $strftimedatetime);
9696
$this->expires = $issue->expires > 0

0 commit comments

Comments
 (0)