|
@ -58,10 +58,10 @@ if ($mform->is_cancelled()) { |
|
|
$DB->update_record('enrol', $instance); |
|
|
$DB->update_record('enrol', $instance); |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
// $fields = array('status'=>$data->status, 'name'=>$data->name, 'password'=>$data->password, 'customint1'=>$data->customint1, 'customint2'=>$data->customint2, |
|
|
$fields = array( |
|
|
// 'customint3'=>$data->customint3, 'customint4'=>$data->customint4, 'customtext1'=>$data->customtext1, |
|
|
'status'=>$data->status, |
|
|
// 'roleid'=>$data->roleid, 'enrolperiod'=>$data->enrolperiod, 'enrolstartdate'=>$data->enrolstartdate, 'enrolenddate'=>$data->enrolenddate); |
|
|
'name'=>$data->name, |
|
|
$fields = array('status'=>$data->status, 'name'=>$data->name, 'customtext1'=>$data->customtext1); |
|
|
'customtext1'=>$data->customtext1); |
|
|
$plugin->add_instance($course, $fields); |
|
|
$plugin->add_instance($course, $fields); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|