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

Multi-day sessions not displayed in date order

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.4
    • 1.9.5
    • None
    • None
    • Mac OS X 10.4, PHP 5.2.5, MySQL 5.0.41
    • Easy
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      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')) {

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              13/May/09