Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mailtemplatelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public static function get_scheduler_variables(scheduler_instance $scheduler, $
$vars ['TIME'] = userdate($slot->starttime, get_string('strftimetime'), $tz);
$vars ['ENDTIME'] = userdate($slot->endtime, get_string('strftimetime'), $tz);
$vars ['LOCATION'] = format_string($slot->appointmentlocation);
$vars ['NOTES'] = format_string($slot->notes);
}
if ($teacher) {
$vars['ATTENDANT'] = fullname($teacher);
Expand Down
5 changes: 5 additions & 0 deletions slotforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,11 @@ protected function definition() {

$mform->addElement('select', 'emaildaterel', get_string('emailreminder', 'scheduler'), $remindersel);
$mform->setDefault('remindersel', -1);

// Slot comments.
$mform->addElement('editor', 'notes', get_string('comments', 'scheduler'),
array('rows' => 3, 'columns' => 60), $this->noteoptions);
$mform->setType('notes', PARAM_RAW); // Must be PARAM_RAW for rich text editor content.

$this->add_action_buttons();

Expand Down
4 changes: 2 additions & 2 deletions teacherview.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function scheduler_action_doaddsession($scheduler, $formdata) {
} else {
$slot->duration = $data->endhour * 60 + $data->endminute - $data->starthour * 60 - $data->startminute;
};
$slot->notes = '';
$slot->notesformat = FORMAT_HTML;
$slot->notes = $data->notes['text'];
$slot->notesformat = $data->notes['format'];
$slot->timemodified = time();

for ($d = 0; $d <= $fordays; $d ++) {
Expand Down