[Rt-devel] Adding Custom Field Types (specifically: Date)

Joshua Colson jcolson at realm.ination.cc
Fri Apr 14 18:03:04 EDT 2006


On Wed, 2006-04-12 at 14:52 -0400, Jesse Vincent wrote:

> > 
> > Also, I noticed in the docs/design_docs/evil_plans file it mentions that
> > this would be a 'Nice' feature to have. Does that mean there is already
> > work happening on this at BP? If anyone is working on this, I would be
> > willing to help.
> 
> We're not currently doing anything along these lines. My humble request
> would be "start with 3.6", as it's had a lot of CF work that might be
> useful to you.
> 

I've gotten a Custom Field of Type 'Date' working in my development
environment. However, it is fairly simple (as the Custom Fields are just
varchar/text fields) and only stores what you put in the text box (which
may not be a date). Effectively the only advantage is that it is now
consistent with the other Date fields in that you can click the adjacent
link to select a date from the Calendar Pop-up. In the interest of
getting a patch accepted, what else would BP like for it to do, if
anything? My thoughts were to add some code such as
ProcessCustomFieldDates() in Web.pm to mimic the behavior of the
ProcessTicketDates() sub for the true Date types.

Thoughts, suggestions, criticism appreciated.

Thanks.

-- 
Joshua Colson <jcolson at realm.ination.cc>



More information about the Rt-devel mailing list