-
Bug
-
Resolution: Fixed
-
Minor
-
1.9.4
-
None
-
None
-
Mac OS X 10.4, PHP 5.2.5, MySQL 5.0.41
-
Easy
-
MOODLE_19_STABLE
-
MOODLE_19_STABLE
See http://moodle.org/mod/forum/discuss.php?d=125547
Steps to reproduce:
1. Create a face-to-face session with multiple dates
2. View the session on the upcoming sessions pages
What should happen:
Dates displayed in correct time order.
What actually happens:
Dates are displayed in reverse time order.
Fix:
Change the following line of the face_to_face_get_session_dates() function in facetoface/lib.php:
if ($dates = get_records('facetoface_sessions_dates', 'sessionid', $sessionid)) {
to:
if ($dates = get_records('facetoface_sessions_dates', 'sessionid', $sessionid, 'timestart')) {