Skip to content

Commit

Permalink
Bug #160659 fix: Certificate id not display on the issued certificate. (
Browse files Browse the repository at this point in the history
#16)

* Bug #160659 fix: Certificate id not display on the issued certificate.

* Bug #160659 fix: Certificate id not display on the issued certificate.

* Bug #160659 fix: Certificate id not display on the issued certificate.

* Bug #160659 fix: Certificate id not display on the issued certificate.

Co-authored-by: “Rohan Shinde <“[email protected]”>
  • Loading branch information
shindebalu and “Rohan Shinde authored May 5, 2020
1 parent 035945f commit d9f21f5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,12 @@ public function issueCertificate($replacements, $options)
throw new Exception(Text::_('COM_TJCERTIFICATE_TEMPLATE_INVALID'));
}

// Generate unique certificate id
$this->unique_certificate_id = $this->generateUniqueCertId($options);

// Generate unique certificate id replacement
$replacements->certificate->cert_id = $this->unique_certificate_id;

// Generate certificate body
$this->generated_body = $this->generateCertificateBody($template->body, $replacements);

Expand Down Expand Up @@ -714,9 +720,6 @@ public function issueCertificate($replacements, $options)
$this->expired_on = $db->getNullDate();
}

// Generate unique certficate id - start
$this->unique_certificate_id = $this->generateUniqueCertId($options);

// Save certificate
$this->save();

Expand Down

0 comments on commit d9f21f5

Please sign in to comment.