Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51843

The Scheduler month view is incorrect if there are multiple overlapping events at the first day of the week

    Details

      Description

      A way to reproduce the error is to change demos/scheduler/index.html, using this array of items:

      var items = [
          {
              content: 'Event 1',
              startDate: new Date(2014, 6, 4),
              endDate: new Date(2014, 6, 20),
              allDay: true
          },
          {
              content: 'Event 2',
              startDate: new Date(2014, 6, 4),
              endDate: new Date(2014, 6, 20),
              allDay: true
          },
          {
              content: 'Event 3',
              startDate: new Date(2014, 6, 4),
              endDate: new Date(2014, 6, 20),
              allDay: true
          },
          {
              content: 'Other event',
              startDate: new Date(2014, 6, 20),
              endDate: new Date(2014, 6, 22),
              allDay: true
          },
      ];
      

      If Sunday is the first day of the week, and:

      • 3 or more events end on Sunday, for example from 7/4 to 7/20
      • another event starts the same day and ends a few days later, for example from 7/20 to 7/22

      Then in month view, while the 7/20 cell correctly shows 2 events and a "Show 2 more" links, the cells 7/21 and 7/22 seem to be empty. Instead, they should show the fourth event, most likely with a "Show 1 more" link.

        Attachments

        1. failed.png
          failed.png
          37 kB
        2. fixed.png
          fixed.png
          43 kB
        3. reproduced.png
          reproduced.png
          37 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 31 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M3