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

End date is validated even when endDateType indicates there is no end date

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 5.2.X EE, 6.0.4 GA, 6.0.5 GA, 6.0.12 EE, 6.1.0 CE RC1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tomcat 6.0.29 + MySQL. Firefox 4.0.0. 6.1.x. Revision 78000.
      Tomcat 6.0.29 + MySQL. Firefox 4.0.0. 6.0.x. Revision 78000.
      Tomcat 6.0.29 + MySQL. Firefox 4.0.0. 5.2.x. Revision 78000.
    • Branch Version/s:
      6.0.x, 5.2.x
    • Fix Priority:
      2

      Description

      In CalEventLocalServiceImpl we find the following lines of code

      else if (!Validator.isDate(endDateMonth, endDateDay, endDateYear))

      { throw new EventEndDateException(); }

      It checks that the end date is infact a valid date but when endDateType is 0 (no end date) it makes no sense to check fot this.

      The problem will only manifest itself when you make modifications to edit_event.jsp from a jsp hook

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            jelmer Jelmer Kuperus (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 41 weeks, 3 days ago

                Packages

                Version Package