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

Only calendars from the current site and current user should be available in the event edit window

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.X EE, 7.0.0 M4
    • Fix Version/s: 6.2.X EE, 7.0.0 M4
    • Component/s: Calendar
    • Labels:

      Description

      Currently, when a user opens the full edit window, all calendars on which the user has MANAGE_BOOKING permissions are available to choose in the "Details" section. This is confusing, because in Liferay the usual behavior is only allowing a portlet to add content to the current site. This is also causing severe performance issues.

      Only calendars from the current site and current user should be available in the event edit window.

      Steps to reproduce

      1. Start up Liferay. Deploy the calendar portlet.
      2. Add Calendar to the Welcome page.
      3. Create a site named "test site".
      4. Add a page to "test site".
      5. Add the calendar to this page.
      6. Create a user named "test user".
      7. Add the calendar to "test user" profile page.
      8. Impersonate "test user". Access its profile.
      9. Stop the impersonation.
      10. Go to the Welcome page.
      11. Click in "Add Event".
      12. Open the "Details" section. Observe all calendars listed in the dropdown.
      13. Close the edit window.
      14. Add the "test site" page in the "Other Calendars" input.
      15. Click in "Add Event".
      16. Open the "Details" section. Observe all calendars listed in the dropdown.

      Expected results

      • In step 12, only the "Liferay" site calendars and "Test test" user calendars would be listed.
      • In step 16, only the "Liferay" site calendars, "Test test" user calendars and the "test site" calendar would be listed.

      Actual results

      • In step 12, "Liferay" site calendars "Test test" user calendars, "test site" site calendars and "test user" user calendars are listed.
      • In step 16, "Liferay" site calendars "Test test" user calendars, "test site" site calendars and "test user" user calendars are listed.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 37 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M4