Modify

Opened 8 years ago

Last modified 6 years ago

#5838 new defect

[patch] Changing field type to 'date' is buggy

Reported by: Peter Owned by: Odd Simon Simonsen
Priority: normal Component: CustomFieldAdminPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When used in conjunction with DateField plugin changing fieldtype to date does not change type to 'date', it stays as 'text'. It actually gets changed correctly in trac.ini (field.date=true) so it kinda works but is rather confusing.

Attachments (1)

customfieldadmin-datefield.diff (2.9 KB) - added by Carsten Fechtmann 6 years ago.
patch to make CustomFieldAdminPlugin work with latest DateFieldPlugin

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by Steffen Hoffmann

what is most buggy is trying to get arround without native support for custom date/time fields

see #7015 about what might be done in the future to make this issue here essentially obsolete, BTW, upcoming true date/time fields will have custom field type ' time ', not ' date ', to be more generic

comment:2 Changed 7 years ago by Odd Simon Simonsen

Changed 6 years ago by Carsten Fechtmann

patch to make CustomFieldAdminPlugin work with latest DateFieldPlugin

comment:3 Changed 6 years ago by Carsten Fechtmann

Summary: Changing field type to 'date' is buggy[patch] Changing field type to 'date' is buggy

While we still wait for official support for time fields in trac (it's there ... sort of), here is a patch that works for me™ using trac 0.12.2 and the latest version of the DateFieldPlugin.

It solves (for me) the issue of :

  • getting an error message of there being no 'date' type
  • does NOT remove the settings for any datefields,
  • still lets you do all the other things (add, modify, delete) within the Admin section using a browser

your mileage may vary, however

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Odd Simon Simonsen.

Add Comment


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

 
Note: See TracTickets for help on using tickets.