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

Multi-day sessions not displayed in date order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X 10.4, PHP 5.2.5, MySQL 5.0.41
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

            Assignee:
            francois Francois Marier
            Reporter:
            simoncoggins Simon Coggins
            Participants:
            Component watchers:
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/May/09