# Changelog

## 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
