From 3b4445b1b54187ace717cf3ceda3b7605c898c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Wed, 10 Feb 2016 12:18:13 -0500 Subject: [PATCH 1/2] Fix Agenda Events sort by Start Date - Refs #8014 --- main/calendar/agenda_list.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main/calendar/agenda_list.php b/main/calendar/agenda_list.php index 533eccd35f..92d2c7b5c2 100755 --- a/main/calendar/agenda_list.php +++ b/main/calendar/agenda_list.php @@ -33,6 +33,14 @@ if (!empty($currentCourseId) && $currentCourseId != -1) { $this_section = SECTION_COURSES; } else { // Agenda is out of the course tool (e.g personal agenda) + + // Little hack to sort the events by start date in personal agenda (Agenda events List view - See #8014) + usort($events, function($a, $b) { + $t1 = strtotime($a['start']); + $t2 = strtotime($b['start']); + return $t1 - $t2; + }); + $url = false; if (!empty($events)) { foreach ($events as &$event) { From 08b7cd5708f7ae783703b70bee29d3bb14ddf72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Mon, 15 Feb 2016 15:38:51 -0500 Subject: [PATCH 2/2] Fix Announcements tags are not documented anymore - Refs #8085 --- main/announcements/announcements.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index 4224a6153f..4fdfe04f0a 100755 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -318,6 +318,14 @@ switch ($action) { $form->addElement('text', 'title', get_lang('EmailTitle')); $form->addElement('hidden', 'id'); + $htmlTags = "".get_lang('Tags')."

"; + $tags = AnnouncementManager::get_tags(); + + foreach ($tags as $tag) { + $htmlTags .= "".$tag."
"; + } + + $form->addHtml("
".$htmlTags."
"); $form->addHtmlEditor( 'content', get_lang('Description'),