[rt-users] Non-Mandatory CF is being required
Jeff Blaine
jblaine at kickflop.net
Mon May 10 14:43:31 EDT 2010
Thanks Eleanor
Duh!
On 5/10/2010 2:23 PM, Eleanor J. Evans [Panix Staff] wrote:
> On Mon, May 10, 2010 at 02:15:36PM -0400, Jeff Blaine wrote:
>> Name: Occurred Date
>> Applies to: Tickets
>> Type: Enter multiple values
>> Validate: (?#YYYY-MM-DD)^\d\d\d\d-\d\d-\d\d$
>
>> Creating a new ticket via the web GUI is rejected with:
>> Occurred Date: Input must match [YYYY-MM-DD]
>
> It must match the regex, so include the optional within it:
>
> (?#Digits)^[\d.]*$
>
> instead of the provided
>
> (?#Digits)^[\d.]+$
>
> for example.
>
> (?#YYYY-MM-DD)^(\d\d\d\d-\d\d-\d\d|)$
>
>
More information about the rt-users
mailing list