Modify

Opened 5 years ago

Last modified 4 years ago

#5838 new defect

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

Reported by: goldman Owned by: osimons
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 fecht 4 years ago.
patch to make CustomFieldAdminPlugin work with latest DateFieldPlugin

Download all attachments as: .zip

Change History (4)

comment:1 Changed 5 years ago by hasienda

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 4 years ago by osimons

Changed 4 years ago by fecht

patch to make CustomFieldAdminPlugin work with latest DateFieldPlugin

comment:3 Changed 4 years ago by fecht

  • Summary changed from Changing field type to 'date' is buggy to [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

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.