Browse Source

Merge pull request #88 from Chiew96/master

Fixed notify[] that was not saved when new instance created
SABERES_37_STABLE
Flotter Totte 6 years ago
committed by GitHub
parent
commit
594b442402
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      edit.php

4
edit.php

@ -90,8 +90,9 @@ if ($mform->is_cancelled()) {
}
// Convert back to string for storing in enrol table.
//$data->customtext2 = implode(',', $notify);
if ($instance->id) {
$notify = implode(",", $notify);
if ($instance->id) {
$instance->status = $data->status;
$instance->name = $data->name;
$instance->customtext1 = $data->customtext1;
@ -116,6 +117,7 @@ if ($mform->is_cancelled()) {
'customint6' => $data->customint6,
'customtext1' => $data->customtext1,
'customtext2' => $data->customtext2,
'customtext3' => $notify,
'enrolperiod' => $data->enrolperiod
);
$plugin->add_instance($course, $fields);

Loading…
Cancel
Save