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

Calendar - Calendar throws TypeError: | is undefined when adding an event

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.0 M3
    • Fix Version/s: 7.0.0 M3
    • Component/s: Calendar
    • Labels:

      Description

      1. Add Calendar portlet to page
      2. Click Add Event button
      3. Type in Title field
      4. Change Start and End time/date
      5. Flag All Day/Repeat checkboxes

      Expected results: User should be able to type in the title field, and edit the event's start and end time/date, in addition be able to flag the different checkboxes.

      Actual results: User is unable to type in the title field, and edit the event's start and end time/date, in addition being unable to flag the different checkboxes. A javascript error is thrown in the firebug console. Please see attached screenshot.

      junit.framework.AssertionFailedError: Command failure "assertJavaScriptErrors" with parameter "null" : TypeError: l is undefined [http://localhost:8080/web/guest/calendar-page?p_p_id=1_WAR_calendarportlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_1_WAR_calendarportlet_startTime={startTime}&_1_WAR_calendarportlet_titleCurrentValue=&_1_WAR_calendarportlet_calendarId=10503&_1_WAR_calendarportlet_calendarBookingId={calendarBookingId}&_1_WAR_calendarportlet_allDay={allDay}&_1_WAR_calendarportlet_activeView=week&_1_WAR_calendarportlet_mvcPath=/edit_calendar_booking.jsp&_1_WAR_calendarportlet_endTime={endTime}&_1_WAR_calendarportlet_date={date}:52]
      	at com.liferay.portalweb.portal.util.liferayselenium.Logger.logError(Logger.java:242)
      	at com.liferay.portalweb.portal.util.liferayselenium.LoggerHandler.invoke(LoggerHandler.java:87)
      	at com.sun.proxy.$Proxy8.assertJavaScriptErrors(Unknown Source)
      	at com.liferay.portalweb2.util.block.action.BaseLiferayAction.type(BaseLiferayAction.java:1066)
      	at com.liferay.portalweb2.util.block.macro.CalendarEventMacro.addPG(CalendarEventMacro.java:737)
      	at com.liferay.portalweb2.enduser.calendar.pgcalendar.PGCalendarTestCase.methodAddCalendarEventAllDay(PGCalendarTestCase.java:137)
      	at com.liferay.portalweb2.enduser.calendar.pgcalendar.PGCalendarTestCase.testAddCalendarEventAllDay(PGCalendarTestCase.java:2651)
      	at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)

      https://build.liferay.com/1/view/liferay-portal(master)/job/liferay-portal-frontend-tomcat(master)%5Bportal-calendar%5D/label_exp=!build-1,test=PGCalendarTestCase%23testAddCalendarEventAllDay/lastCompletedBuild/testReport/com.liferay.portalweb2.enduser.calendar.pgcalendar/PGCalendarTestCase/testAddCalendarEventAllDay/

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 M3