Commit graph

480 commits

Author SHA1 Message Date
Mark Nelson
3dc83cb306 Updated CHANGES.md 2020-03-12 14:54:58 +01:00
Mark Nelson
a2c30e3667 Added extra Behat steps for new elements (#309) 2020-03-11 14:18:42 +01:00
Mark Nelson
ad7d4099b4 Avoid use of old array syntax (#331) 2020-03-10 17:41:30 +01:00
Sergey
1c9f4786fb 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:35 +01:00
Mark Nelson
2f8bb1eb29 Do not allow '0' as a value for width or height in QR code (#321) 2020-03-09 14:53:11 +01:00
Mark Nelson
01bfe2f660 Fix foreign key violation (#331) 2020-03-09 14:32:10 +01:00
Mark Nelson
28a8b99f31 Bumped version 2020-02-01 16:00:06 +01:00
Mark Nelson
9810b48b25 Updated CHANGES.md 2020-02-01 15:55:22 +01:00
Mark Nelson
28b2210b19 Fixed typo in Behat file name 2020-02-01 15:48:42 +01:00
Mark Nelson
62639d1754 Re-add code column (#264) 2020-02-01 15:48:08 +01:00
mwithheld
e7352bf715 Do not fail if multiple certificate issues (#304)
Fix another location of this problem.
2019-12-16 16:18:24 +01:00
mwithheld
b28877f5ee 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:18:12 +01:00
Mark Nelson
bc2fe29354 Changed references to old github name 2019-12-16 15:11:36 +01:00
Arnaud Trouvé
74f1cd732d Add userfullname variable for email subject (#316) 2019-12-16 15:01:52 +01:00
Mark Nelson
9d97d7e6fb Bumped version 2019-06-17 17:08:06 +08:00
Mark Nelson
bd91807fe2 Updated CHANGES.md 2019-06-17 14:40:59 +08:00
Mark Nelson
88ef8f25fa Add ability to specify the current date for date related elements (#289) 2019-06-17 13:34:56 +08:00
Mark Nelson
c420d3b943 String improvements for date range element
Also added a help button to reduce the wall
of text.
2019-06-17 12:42:04 +08:00
Mark Nelson
5a6993009b Fixed PHPDoc reference to edit_element_form 2019-06-17 12:16:05 +08:00
Mark Nelson
08b10ebdad 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:30:58 +08:00
Mark Nelson
1511c079ab Specify OS in travis 2019-05-29 00:19:47 +08:00
Mark Nelson
a26d58bf33 Fix complaints found by local_moodlecheck 2019-05-29 00:13:17 +08:00
Mark Nelson
8358280c6c Added capability to determine who can receive a certificate (#270) 2019-05-28 17:52:52 +08:00
Mark Nelson
557a2aee18 Updated CHANGES.md 2019-05-28 17:52:50 +08:00
Mark Nelson
88dcb9142a Minor changes (#185) 2019-05-28 14:20:30 +08:00
Dmitrii Metelkin
1fbf233111 Use repeat form element for date ranges (#185) 2019-05-25 15:01:26 +08:00
Dmitrii Metelkin
3450388a36 Remove empty line (#185) 2019-05-25 15:01:13 +08:00
Dmitrii Metelkin
5b44544e74 Add new placeholders and update help description (#185) 2019-05-25 15:01:02 +08:00
Dmitrii Metelkin
597659e23e Rename first_year and last_year placeholders (#185) 2019-05-25 15:00:49 +08:00
Dmitrii Metelkin
c31f31a63d Update description string (#185) 2019-05-25 15:00:41 +08:00
Dmitrii Metelkin
fafb0159d8 Add tests to support functionality (#185) 2019-05-25 15:00:33 +08:00
Dmitrii Metelkin
6e091e9fd6 Improve the logic of recurring ranges (#185) 2019-05-25 15:00:19 +08:00
Dmitrii Metelkin
4ac9615514 Recursively check recurring date ranges (#185) 2019-05-25 15:00:12 +08:00
Dmitrii Metelkin
d0bca80d35 Add an empty line to the end of styles.css (#185) 2019-05-25 15:00:03 +08:00
Dmitrii Metelkin
386592d27b Update lang strings (#185) 2019-05-25 14:59:56 +08:00
Dmitrii Metelkin
a7441e8b1b Be more strict about 12 months limit (#185) 2019-05-25 14:59:48 +08:00
Dmitrii Metelkin
fbe8024438 Modify recurring dateranges (#185) 2019-05-25 14:59:23 +08:00
Dmitrii Metelkin
4e30f1e851 Add range related placeholders (#185) 2019-05-25 14:59:15 +08:00
Dmitrii Metelkin
5a9d9792df Get rid of useless css rule (#185) 2019-05-25 14:59:03 +08:00
Dmitrii Metelkin
19d0bf5dc8 Change a way of displaying date ranges on the edit element page (#185) 2019-05-25 14:58:52 +08:00
Dmitrii Metelkin
b26e8c92b9 Add recurring option to dateranges (#185) 2019-05-25 14:58:41 +08:00
Dmitrii Metelkin
b6ce73637c Use element name in the preview mode (#185) 2019-05-25 14:58:31 +08:00
Mark Nelson
1a172b9065 Bump date range element version numbers (#185) 2019-05-25 14:58:27 +08:00
Dmitrii Metelkin
7436054c17 Add date range element (#185) 2019-05-25 14:58:13 +08:00
Mark Nelson
0b0b37ed35 Check that a certificate issue exists (#269) 2019-05-23 12:04:19 +08:00
Mark Nelson
1ac494df93 Make travis happy (#282) 2019-05-23 12:04:12 +08:00
Sagar Ghimire
f0733f4e7d Fix failing test_get_grades (#282) 2019-05-23 12:04:01 +08:00
Mark Nelson
8467b847b2 Use openjdk-8-jre-headless instead of oracle-java8 in .travis.yml 2019-05-23 10:45:41 +08:00
Mark Nelson
4f4a999439 Readded number of certificates issued (#266) 2019-04-16 20:54:17 +08:00
Mark Nelson
b808ff4ead Removed unnecessary inclusion 2019-04-16 20:54:17 +08:00