Uploaded image for project: 'Holiday Request'
  1. Holiday Request
  2. HOLIDAYREQ-31

Notification email displays "null to null" instead of dates on XWiki 6.4.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.3.1
    • None

    Description

      This should not necessarly warrant a fix since it seems it cannot be reproduced on previous versions (6.2) and future versions (7.x)

      But the issue would be with the datetool that does not take a locale as string in this version:

      Changing the following code in HolidayRequest.HolidayRequestSheet:

      ##set($startDateMail = $datetool.format('full_date',$!doc.getValue("startDate"),$mailLanguage))
      ##set($endDateMail = $datetool.format('full_date',$!doc.getValue("endDate"),$mailLanguage))
      #set($startDateMail = $datetool.format('full_date',$!doc.getValue("startDate")))
      #set($endDateMail = $datetool.format('full_date',$!doc.getValue("endDate")))
      

      Fixes the issue temporarly

      Attachments

        Activity

          People

            Unassigned Unassigned
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: