[Vtigercrm-developers] anniversary fields have to be called "birthday"

Alan Bell alan.bell at libertus.co.uk
Tue Apr 7 16:13:53 GMT 2015


I was asked recently why the filter for contacts birthdays works, but 
setting up a similar filter for a custom field on organisations doesn't 
work. The intent was to have a "date of installation" field on the 
organisation, then a filter showing "things installed in April", setting 
up a "this month" filter against a custom date field like that does show 
things literally this month, but not this month in other years. The 
solution was to change the internal name of the custom field to 
"birthday" and then there are a bunch of hard coded things that spot 
this field name and filter on the month or day and treat the year as a 
wildcard.

This is a bit odd, there shouldn't be stuff that is hard coded to do 
different actions based on the field being called "birthday". It would 
be good to refactor this at some stage into a different uitype so you 
would have a uitype of "anniversary" which stores a date, but for the 
purposes of filters the year isn't important.

Alan.


More information about the vtigercrm-developers mailing list