Release Notes — MS Graph API Mailer v1.1.8
Release Date: 08 April 2026
Plugin: local_msgraph_api_mailer
Moodle Compatibility: 5.1+
PHP Compatibility: 8.3+
Bug Fixes
Mustache template docblock — JSON parse error resolved
All three Mustache templates had their GPL license header and @template docblock
written as two separate {{! }} comment blocks. The Moodle prechecker extracts
the example context JSON from the first {{! }} block it encounters — when split,
it was reading the license text as JSON, producing:
Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
for changelog.mustache, email_log.mustache, and test_validate.mustache.
All three templates now use a single {{! }} block that contains both the license
header and the @template docblock, which is the required Moodle standard format.
AMD build files rebuilt
amd/build/index.min.js and amd/build/tester.min.js (plus their .map files) were
stale relative to their sources in amd/src/, triggering:
Uncommitted change detected.
on all four build artefacts. Both files have been rebuilt from source.
Array spacing in settings.php (v1.1.7 carry-forward)
The $statusmap array in settings.php had a missing space before => on the 'ok'
key and extra spaces after commas inside the inner sub-arrays. Fixed to comply with the
Moodle phpcs coding standard.
Upgrade Notes
- Upgrading from any previous version: Drop-in replacement — no admin action required
after upgrading through Moodle's standard plugin upgrade flow.
- Database: No schema changes. All existing log records are preserved.
- No cache purge required.
Files Changed
| File | Change |
|------|--------|
| version.php | Bumped to 1.1.8 / 2026040800 |
| db/upgrade.php | Added 2026040800 savepoint |
| templates/changelog.mustache | Merged split {{! }} comment blocks into one |
| templates/email_log.mustache | Merged split {{! }} comment blocks into one |
| templates/test_validate.mustache | Merged split {{! }} comment blocks into one |
| amd/build/index.min.js + .map | Rebuilt from amd/src/index.js |
| amd/build/tester.min.js + .map | Rebuilt from amd/src/tester.js |
| settings.php | Fixed phpcs array spacing in $statusmap |