# Changelog

## 5.0.4 - 2025-12-09
### Added
- Added bulk certificate regeneration
### Changed
- Updated all time and date handling to use the new Clock API
- Compatibility with latest codechecker standards
### Fixed
- Fixed exception when editing a certificate on a new site

## 5.0.3 - 2025-10-07
### Added
- Added support for Moodle 5.1

## 5.0.2 - 2025-08-12
### Added
- Added mobile app version of "My certificates"
### Fixed
- Fixed issue where bulk PDF generation could fill up local temporary directory

## 5.0.1 - 2025-06-10
### Fixed
- Fixed an issue where course navigation was not working correctly when viewing a certificate

## 5.0 - 2025-04-14
### Added
- Added support for Moodle 5.0

## 4.5.3 - 2025-03-18
### Fixed
- behat tests checking that certificate opens in a new window failing with selenium/standalone-chrome:4

## 4.5.1 - 2024-12-10
### Fixed
- issuing scheduled task throws exception on already created file under a race condition

## 4.5 - 2024-11-05
### Fixed
- Replaced icons that are no longer correct in Moodle 4.5 leaving compatibility with previous versions

## 4.4.4 - 2024-10-08
### Added
- Compatibility with Moodle 4.5; Updates to version testing matrices
### Fixed
- Fixed memory leak when generating a lot of certificates

## 4.4.3 - 2024-09-03
### Changed
- Only changes to automatic testing scripts

## 4.4.2 - 2024-08-13
### Fixed
- Failing behat tests because of incorrect table headers

## 4.4.1 - 2024-06-11
### Fixed
- fixed implicit nullable parameter declaration deprecated in PHP 8.4
  (new coding style check)

## 4.4 - 2024-05-21
### Added
- Add cohort entity to issued certificates datasource

## 4.3.4 - 2024-04-23
### Added
- Added a new issued certificate regenerated event.
- Compatibility with Moodle 4.4, added to the testing matrix
### Fixed
- Coding style fixes to comply with moodle-plugin-ci 4.4.0

## 4.3.2 - 2023-12-28
### Added
- When creating a link for LinkedIn allow to choose whether it's a link to
  the certificate verification page or the certificate PDF itself.

## 4.3 - 2023-11-09
### Added
- Testing on Workplace 4.3
- Added missing SVG icons
### Changed
- Coding style fixes

## 4.2.3 - 2023-10-10
### Changed
- Coding style fixes
- Included LMS 4.3 and PHP 8.2 in the GHA testing matrix

## 4.2.2 - 2023-08-22
### Changed
- Reportbuilder source "Certificate issues" no longer automatically checks
  current user permission to access the certificate templates. The similar
  manual condition was added in the upgrade script to all existing reports
  to prevent change in behaviour. New reports will not have this condition.

  This allows to create reports such as "My certificates" visible to any
  users including those who can not view or edit the templates.

## 4.2 - 2023-05-30
### Changed
- Removed strings: entitycertificateissues, errornopermissionissuecertificate, expires,
  issuedon, issuenewcertificates, mappingerrorcertificateheader, mappingerrorcertificatelog,
  nopermissionform, outcomecertificate, outcomecertificatedescription, point, receiveddate,
  selectcertificate, toomanycertificatestoshow, type
- Deprecated strings: editcertificate, issuenewcertificate, nopermissionform

## 4.1.3 - 2023-04-25
### Added
- Compatibility with Moodle LMS 4.2
- Compatibility with PHP 8.1 for Moodle LMS 4.1 and 4.2
### Fixed
- Prevent debugging messages about missing leftmargin and rightmargin field types

## 4.1.2 - 2023-03-14
### Added
- Setting to skip some text filters when generating PDFs
- Added support for certificate elements plugins settings
### Changed
- Added a new integer parameter to `tool_certificate_generator::issue` to specify the certificate issue courseid
- Moved certificate issuing event before email is sent, so event processor can make changes (CONTRIB-8867).
### Fixed
- Fix exception on view certificate templates page due to duplicated alias (CONTRIB-9211)

## 4.1.1 - 2023-01-17
### Changed
- Automated tests fixes

## 4.0.5+ - 2023-01-11
### Changed
- Certificates PDFs now always open in a new tab
### Removed
- Removed "Modal forms" functionality since it is now implemented in core -
  web service `tool_certificate_modal_form`, JS modules: `tool_certificate/modal_form`,
  class `tool_certificate/modal_form`

## 4.0.5 - 2022-11-15
### Changed
- Compatibility with Moodle LMS 4.1

## 4.0.4+ (2022101400)
### Fixed
- Removed no longer existing user profile fields from the element form (Twitter/ICQ/etc)

## 4.0.4 (2022091300)
### Changed
- Forms in the popups now use core dynamic forms
- Easier navigation between editing template and issued certificates

## 4.0.3 (2022082400)
### Fixed
- Fixed bug with the reportbuilder reports showing 'source unavailable' error to some users.

### Changed
- Add lock when generating certificate
- Convert certificates to use core reportbuilder system reports

## 4.0.2 (2022071200)
### Added
- Course certificates may be archived when a course is reset allowing to receive more than one
  certificate per user in the same course

## 4.0.1 (2022051000)
### Changed
- Prevent race condition resulting in issuing course certificate twice

## 4.0.0 (2022042000)
### Changed
- This version of the plugin is only for Moodle LMS 4.0 and above

## 3.11.6 (2022031500)
### Added
- Setting 'Show share on LinkedIn'. When enabled users can add their certificates to LinkedIn
  from the 'My certificates' page in their profile
- Show identity fields in the list of issued certificates
- Allow relative dates for expiry dates (i.e. 1 year after issue)

## 3.11.5 (2022011800)
### Added
- Added mobile support to mod_coursecertificate (small changes required in this plugin)

### Changed
- Compliance with codechecker v3.0.5

## 3.11.1 (2021072000)
### Changed
- Shared image types are now limited to "web_image". Non "web_image" images previously uploaded
  did not work properly.

## 3.11 (2021060800)
### Changed
- Compatibility with Moodle 3.9 - 3.11

## 3.10.4 (2021051100)
### Changed
- New index allowing to search for certificates quicker
- Fixes to coding style to make new version of codechecker happy

## 3.10.1+ (2021020800)
### Changed
- Small UI changes in forms displaying metric system
- Viewing and previewing certificates now open a new browser tab

## 3.10.1 (2021011900)
### Changed
- Fixed issue when moving/deleting categories that contained certificates. All pages/elements
  and issued certificates are now handled correctly
- Fixed issue when generating certificate codes with firstname/lastname with non-latin characters.
  All non-latin characters are now converted for the code.

## 3.10+ (2020121700)
### Changed
- Fixed a bug in how a 'Text area' course custom field is handled in the certificate templates
- Fixed occasional double modal popups when editing templates
- Small visual fixes in the template editing UI

## Previous versions
Changelog was not maintained before version 3.10
