Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12512 closed defect (fixed)

<now> applies to all fields not just the one its assigned to

Reported by: russell@… Owned by: russell@…
Priority: normal Component: DateFieldPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

I've created two custom date fields, one of which I want to default to todays date, the other I wish to start empty.

If I assign <now> to the value property of one of the fields it effects both of them.

Attachments (1)

12512-fix.diff (444 bytes) - added by russell@… 9 years ago.
Fix

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by russell@…

Attachment: 12512-fix.diff added

Fix

comment:1 Changed 9 years ago by russell@…

The attached patch fixes it for me, but I'm no Javascript / JQuery programmer so there may be a better way.

comment:2 Changed 9 years ago by Ryan J Ollos

The diff in attachment:12512-fix.diff is reversed but otherwise looks good. Thanks for the patch.

comment:3 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 14901:

3.0.0dev: Fixes error in handling of <now> keyword.

The keyword replacement was not being applied to each field independently. Fixes #12512.

comment:4 Changed 9 years ago by Ryan J Ollos

Owner: changed from Ryan J Ollos to russell@…

comment:5 Changed 9 years ago by Ryan J Ollos

Released version 3.0.0 of plugin in [14902].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain russell@….
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.