Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52258

Calendar doesn't show duration in calendar block

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 3.0
    • Fix Version/s: 3.1
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide
      • Login to the Moodle site
      • Set Clean as the theme for the Moodle site
      • Add a calendar block (if not present) to your home page
      • Add a new event that finishes three days after the start date. Call it TEST EVENT.
      • The first day should be higlighted with a background color (the color depends on the type of event)
      • Hover on the first day and you must see a popup with TEST EVENT
      • The second day must be highlighted with just a border top and border bottom. The color is the same as the background of day one
      • The CSS class of the second day must be duration_user or duration_global (depends on the type of event inserted)
      • Hover on the second day and you must see a popup with TEST EVENT
      • The third day must be highlighted the same way as day one.
      • The CSS class of the third day must be duration_user or duration_global (depends on the type of event inserted) and duration_finish
      • Hover on the third day and you must see a popup with TEST EVENT (End time)
      Show
      Login to the Moodle site Set Clean as the theme for the Moodle site Add a calendar block (if not present) to your home page Add a new event that finishes three days after the start date. Call it TEST EVENT. The first day should be higlighted with a background color (the color depends on the type of event) Hover on the first day and you must see a popup with TEST EVENT The second day must be highlighted with just a border top and border bottom. The color is the same as the background of day one The CSS class of the second day must be duration_user or duration_global (depends on the type of event inserted) Hover on the second day and you must see a popup with TEST EVENT The third day must be highlighted the same way as day one. The CSS class of the third day must be duration_user or duration_global (depends on the type of event inserted) and duration_finish Hover on the third day and you must see a popup with TEST EVENT (End time)
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52258-master

      Description

      Maybe this behaviour is intentional, but maybe it should be reconsidered.

      To reproduce:

      • Add a calendar block
      • Add an event that finishes another day (two days after, for instance)

      No information is shown in the calendar.

      This can be confusing in closing time of quizies. If you configure a start time and an end time and if the time between them is less or equal to 5 days, an event with duration is created. If the duration is more than one day, then students and teacher don't see the end time in the calendar block.

        Attachments

        1. calendar_block_1.png
          calendar_block_1.png
          39 kB
        2. calendar_block_2.png
          calendar_block_2.png
          36 kB
        3. calendar1.png
          calendar1.png
          46 kB
        4. duration_canvas.png
          duration_canvas.png
          21 kB
        5. events_patched.png
          events_patched.png
          14 kB
        6. upcoming_events_block.png
          upcoming_events_block.png
          43 kB

          Issue Links

            Activity

              People

              • Votes:
                14 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16