Ticket #2199 (new defect)

Opened 12 months ago

Comma char in causes a fatal error in $Date.Format calls from templates

Reported by: mrickerby Owned by: aoneil
Priority: medium Milestone:
Component: (Unknown) Version:
Severity: medium effort / impact Keywords: templates syntax date
Cc: Hours:

Description

When a ',' (comma) character is included in a call to $Date.Format from inside an .ss template, the function arguments are parsed incorrectly and a fatal error is thrown:

FATAL ERROR: Missing argument 1 for Date::Format()

This means that valid date strings such as 'jS F, Y' are not accepted by the template functionality.

For example:

$Created.Format(jS F Y)

will work, but

$Created.Format(jS F, Y)

Will cause the fatal error.

Note: See TracTickets for help on using tickets.