We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4437a97 commit 7d4f059Copy full SHA for 7d4f059
trigger/customfielddelay/lib.php
@@ -57,7 +57,8 @@ public function get_course_recordset_where($triggerid) {
57
$delay = settings_manager::get_settings($triggerid, settings_type::TRIGGER)['delay'];
58
$fieldname = settings_manager::get_settings($triggerid, settings_type::TRIGGER)['customfield'];
59
if (!($field = $DB->get_record('customfield_field', ['shortname' => $fieldname, 'type' => 'date']))) {
60
- throw new \moodle_exception("missingfield");
+ throw new \moodle_exception('missingfield',
61
+ 'lifecycletrigger_customfielddelay', '', $fieldname);
62
}
63
$where = "{course}.id in (select cxt.instanceid from {context} cxt join {customfield_data} d " .
64
"ON d.contextid = cxt.id AND cxt.contextlevel=" . CONTEXT_COURSE . " " .
0 commit comments