Commit graph

508 commits

Author SHA1 Message Date
Mark Nelson e012b8fb22 Fixed issue with PDF being generated without a name (#333) 2020-09-20 15:40:58 +02:00
Mark Nelson f3f9f9c169 Fixed exception loading template image that has no image selected (#369) 2020-09-20 14:58:13 +02:00
Mark Nelson 1f1b2f7689 Do not email those who can manage the certificate (#376) 2020-09-20 14:29:26 +02:00
Guillermo Gomez 4a5b000c59 Implement get_objectid_mapping (#374) 2020-09-20 14:17:05 +02:00
Mark Nelson 378396ecf6 Updated CHANGES.md 2020-08-08 19:34:52 +02:00
Mark Nelson 9d70a88e74 Changed 'enrollment' to 'enrolment' to conform to Moodle core (#328)
Also minor changes like ordering strings alphabetically and adding
full-stops.
2020-08-08 19:34:43 +02:00
Sergey Evstegneiev 22b156be8f Adding enrollment start & end date options (#328) 2020-08-08 19:33:02 +02:00
Mark Nelson 007446ab33 Fix stale file warning 2020-08-08 18:11:00 +02:00
Mark Nelson 27ae633528 Ignore multiple certificate codes (#363) 2020-08-08 15:52:52 +02:00
Mark Nelson d5e41eee61 Remove trailing spaces 2020-08-08 15:46:55 +02:00
Thong Bui cb34de169e Fix get position when browser shrinking (#343) 2020-08-08 15:28:02 +02:00
Steven Tsvetkov 84bdb0d654 Fix custom fields not displaying properly #359 2020-08-01 13:11:47 +02:00
Mark Nelson 267484e214 Updated CHANGES.md 2020-06-28 18:37:12 +02:00
Mark Nelson 1eb24ae74e Update node version used in .travis.yml 2020-05-30 13:37:01 +02:00
Mark Nelson 7d91af9117 Mark certificates as viewed in mobile app (#342) 2020-05-30 13:10:12 +02:00
Mark Nelson cc768d73aa Refactor element_helper::get_grade_items() to be nicer to read 2020-05-08 21:24:05 +02:00
Mark Nelson a279237a69 Fix docs in Grade element name 2020-05-08 17:50:33 +02:00
Mark Nelson b44500dae8 The Grade item name element works with all grade items (#346) 2020-05-08 17:27:43 +02:00
Mark Nelson 30e2e7b1a9 Extend unit test (#329) 2020-05-08 17:22:11 +02:00
Mark Nelson 95b9ee2acb Add the ability to select Outcomes in the Grade element (#329) 2020-05-08 17:22:05 +02:00
Mark Nelson 05fb3c71d7 Removed 'exampledata' string 2020-05-08 16:57:25 +02:00
Mark Nelson 4921c57b23 Bumped version 2020-03-17 00:21:21 +01:00
Mark Nelson 219cfd1343 Fixed broken logic (#298) 2020-03-16 17:52:15 +01:00
Mark Nelson 595326623f Loading templates copies system images to the course (#298)
Before it would just reference the system images. However, this meant
backup/restore was broken as it did not include the images the template
was using.
2020-03-15 19:52:57 +01:00
Mark Nelson 4b2af9bcca Updated CHANGES.md 2020-03-12 14:49:21 +01:00
Mark Nelson ec0983c124 Added extra Behat steps for new elements (#309) 2020-03-11 14:17:00 +01:00
Mark Nelson de7f9a9bd8 Avoid use of old array syntax (#331) 2020-03-10 17:41:25 +01:00
Sergey ca1b065b65 Fix of showing names of custom user fields (#326)
Show normal human-readable name of custom user profile fields instead of internal shortname
2020-03-09 14:57:23 +01:00
Mark Nelson d007e56589 Do not allow '0' as a value for width or height in QR code (#321) 2020-03-09 14:53:02 +01:00
Mark Nelson 4e9421c6f9 Fix foreign key violation (#331) 2020-03-09 14:06:34 +01:00
Mark Nelson 3ef47f0cb1 Bumped version 2020-02-01 15:59:57 +01:00
Mark Nelson fb15859e12 Updated CHANGES.md 2020-02-01 15:53:44 +01:00
Mark Nelson 7cb9bf4778 Fixed typo in Behat file name 2020-02-01 15:48:34 +01:00
Mark Nelson f2a86d4098 Re-add code column (#264) 2020-02-01 15:47:58 +01:00
mwithheld e0366eb398 Do not fail if multiple certificate issues (#304)
Fix another location of this problem.
2019-12-16 16:18:20 +01:00
mwithheld def104602a Do not fail if multiple certificate issues (#295)
Ignore multiple matches for a user-customcert combo in the customcert_issues table.
In our case, the scheduled task died when:
$issueid = $DB->get_field('customcert_issues', 'id', array('userid' => $enroluser->id, 'customcertid' => $customcert->id));
returned 2 rows, which shouldn't happen, but did anyway.

This means in rare circumstances (i.e. the race condition) the user may get multiple certificates (e.g. one via the UI, one by email) but that is better than not getting one at all and the whole job dying.
2019-12-16 16:17:59 +01:00
Mark Nelson 8f50580173 Changed references to old github name 2019-12-16 15:11:32 +01:00
Arnaud Trouvé fa6270e360 Add userfullname variable for email subject (#316) 2019-12-16 15:01:48 +01:00
Mark Nelson 8296796519 Bumped version 2019-06-17 17:02:25 +08:00
Mark Nelson 9f953fc928 Updated CHANGES.md 2019-06-17 14:38:13 +08:00
Mark Nelson 36d178bda3 Add ability to specify the current date for date related elements (#289) 2019-06-17 13:33:16 +08:00
Mark Nelson 7756d928ac String improvements for date range element
Also added a help button to reduce the wall
of text.
2019-06-17 12:41:02 +08:00
Mark Nelson 7611196fa3 Fixed PHPDoc reference to edit_element_form 2019-06-17 12:14:26 +08:00
Mark Nelson 68838944fa Use negative numbers for constants in date range element
The reason being that we may have a module that has
an id matching one of these values.
2019-06-17 11:29:06 +08:00
Dan Marsden 7dd18f75e2 Add custom course field element to custom cert (#274) 2019-05-29 16:07:30 +08:00
Mark Nelson 7e60325e17 Bumped PHP minimum version used by travis 2019-05-29 00:35:37 +08:00
Mark Nelson 688d243eee Specify OS in travis 2019-05-29 00:18:51 +08:00
Mark Nelson 0d67b87908 Update travis to use Moodle 3.7 2019-05-29 00:12:10 +08:00
Mark Nelson 38def6bfb4 Fix complaints found by local_moodlecheck 2019-05-29 00:12:10 +08:00
Mark Nelson cbf9997f3e Bump version for 3.7 2019-05-28 18:29:44 +08:00