Skip to content

Commit 495d8b7

Browse files
committed
Bug fixes - Note tool.
1 parent 509bf1e commit 495d8b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ltool/note/classes/ltool_note_filter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ public function get_speater_plug($records) {
531531
$list['instance'] = $this->get_instance_note($data);
532532
$list['base'] = $this->get_title_note($data, $record);
533533
$list['note'] = !empty($record->note) ? $record->note : '';
534-
$list['time'] = userdate($record->timemodified, get_string("baseformat", "local_learningtools"), '', false);
534+
$notetime = !empty($record->timemodified) ? $record->timemodified : $record->timecreated;
535+
$list['time'] = userdate($notetime, get_string("baseformat", "local_learningtools"), '', false);
535536
$list['viewurl'] = $this->get_view_url($record);
536537

537538
if (!empty($this->courseid) && !$this->childid) {

0 commit comments

Comments
 (0)