Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1498

Multi-day sessions not displayed in date order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.5
    • 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')) {

            francois Francois Marier (Inactive)
            simoncoggins Simon Coggins
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.