Commit graph

479 commits

Author SHA1 Message Date
Mark Nelson
a5d51f2478 Removed 'exampledata' string 2020-05-08 16:57:31 +02:00
Mark Nelson
cd9cf91769 Added capability to determine who can receive a certificate (#270) 2020-04-19 13:53:07 +02:00
Mark Nelson
f00a0d739d Update CHANGES.md 2020-04-19 13:52:31 +02:00
Mark Nelson
3ecfaf69f4 Fix foreign key violation (#331) 2020-04-17 17:06:39 +02:00
Mark Nelson
b480cf3c68 Fixed broken logic (#298) 2020-04-17 16:52:07 +02:00
Mark Nelson
48c83d34df 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-04-17 16:52:04 +02:00
Mark Nelson
8a2b7290af Added extra Behat steps for new elements (#309) 2020-04-17 16:28:17 +02:00
Sergey
4db2148886 Fix of showing names of custom user fields (#326)
Show normal human-readable name of custom user profile fields instead of internal shortname
2020-04-17 16:27:54 +02:00
Mark Nelson
e76705315c Fixed typo in Behat file name 2020-04-17 16:26:32 +02:00
Mark Nelson
7f62e6eaec Re-add code column (#264) 2020-04-17 16:26:32 +02:00
Arnaud Trouvé
d37cc22135 Add userfullname variable for email subject (#316) 2020-04-17 16:26:32 +02:00
Mark Nelson
7492fd1686 Changed references to old github name 2020-04-17 16:26:32 +02:00
Mark Nelson
7336a21df7 Downgrade version.php for qrcode element 2020-04-17 16:09:39 +02:00
Mark Nelson
e6ddaa5b30 Do not allow '0' as a value for width or height in QR code (#321) 2020-04-17 16:03:33 +02:00
Mark Nelson
20cfbdf9c3 Fix complaints found by local_moodlecheck 2020-04-17 16:03:26 +02:00
Mark Nelson
1bfceb6794 Incorrect PHPDocs for render_form_elements and co (#271) 2020-04-17 16:03:16 +02:00
Mark Nelson
b16bf5ccb6 Added QR code element (#146) 2020-04-17 16:03:07 +02:00
Mark Nelson
7532606ffa Downgrade version.php for daterange element 2020-04-17 15:47:33 +02:00
Mark Nelson
5da5b675ab Add ability to specify the current date for date related elements (#289) 2020-04-17 15:42:36 +02:00
Mark Nelson
d2f12c859c String improvements for date range element
Also added a help button to reduce the wall
of text.
2020-04-17 15:42:30 +02:00
Mark Nelson
50e8374596 Fixed PHPDoc reference to edit_element_form 2020-04-17 15:42:25 +02:00
Mark Nelson
0652441d45 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.
2020-04-17 15:42:18 +02:00
Mark Nelson
8c03508a40 Fix complaints found by local_moodlecheck 2020-04-17 15:42:08 +02:00
Mark Nelson
4c639bbe3e Minor changes (#185) 2020-04-17 15:41:32 +02:00
Dmitrii Metelkin
4d62cde7f3 Use repeat form element for date ranges (#185) 2020-04-17 15:41:24 +02:00
Dmitrii Metelkin
2866aa7c6b Remove empty line (#185) 2020-04-17 15:41:18 +02:00
Dmitrii Metelkin
9021794049 Add new placeholders and update help description (#185) 2020-04-17 15:41:10 +02:00
Dmitrii Metelkin
8f006a2600 Rename first_year and last_year placeholders (#185) 2020-04-17 15:41:06 +02:00
Dmitrii Metelkin
71b0a8bd0e Update description string (#185) 2020-04-17 15:40:59 +02:00
Dmitrii Metelkin
9874a2bd0d Add tests to support functionality (#185) 2020-04-17 15:40:54 +02:00
Dmitrii Metelkin
ea868e3cd3 Improve the logic of recurring ranges (#185) 2020-04-17 15:40:49 +02:00
Dmitrii Metelkin
82aa988db4 Recursively check recurring date ranges (#185) 2020-04-17 15:40:43 +02:00
Dmitrii Metelkin
3cd85428df Add an empty line to the end of styles.css (#185) 2020-04-17 15:40:37 +02:00
Dmitrii Metelkin
48024d2b77 Update lang strings (#185) 2020-04-17 15:40:31 +02:00
Dmitrii Metelkin
0eb96e3605 Be more strict about 12 months limit (#185) 2020-04-17 15:40:23 +02:00
Dmitrii Metelkin
36ec9188fa Modify recurring dateranges (#185) 2020-04-17 15:40:16 +02:00
Dmitrii Metelkin
2852683dff Add range related placeholders (#185) 2020-04-17 15:40:11 +02:00
Dmitrii Metelkin
3e69898988 Get rid of useless css rule (#185) 2020-04-17 15:40:06 +02:00
Dmitrii Metelkin
92b15ecb06 Change a way of displaying date ranges on the edit element page (#185) 2020-04-17 15:40:00 +02:00
Dmitrii Metelkin
057cf92f03 Add recurring option to dateranges (#185) 2020-04-17 15:39:55 +02:00
Dmitrii Metelkin
59fe72c7ca Use element name in the preview mode (#185) 2020-04-17 15:39:49 +02:00
Mark Nelson
e0cdcb07b9 Bump date range element version numbers (#185) 2020-04-17 15:39:41 +02:00
Dmitrii Metelkin
d91639e4ed Add date range element (#185) 2020-04-17 15:39:34 +02:00
mwithheld
6d0c4160f7 Do not fail if multiple certificate issues (#304)
Fix another location of this problem.
2020-04-07 13:46:29 +02:00
mwithheld
db81b49608 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.
2020-04-01 15:11:33 +02:00
Mark Nelson
3c3902ab9d Specify OS in travis 2019-05-29 00:19:42 +08:00
Mark Nelson
b1b6af3e65 Bump version 2019-05-28 17:49:23 +08:00
Mark Nelson
aacf541621 Updated CHANGES.md 2019-05-28 17:49:23 +08:00
Mark Nelson
4f583679d0 Check that a certificate issue exists (#269) 2019-05-28 14:36:21 +08:00
Mark Nelson
01e427cf57 Make travis happy (#282) 2019-05-28 14:36:15 +08:00