[Vtigercrm-developers] reports and created dates

Alan Bell alan.bell at libertus.co.uk
Wed May 27 12:31:47 GMT 2015


if you create a report and filter on a regular date field you get 
options like "last 30 days" or "Current FY" which is quite cool, but 
these don't work on created and modified dates. This is because the 
fieldType for these is T and not DT, when it comes to the code in 
layouts/vlayout/modules/Vtiger/resources/AdvanceFilter.js

if you change the following lines:
line 109
         if(fieldType == 'D' || fieldType == 'DT'||fieldType=='T'){

line 116
       if(fieldType != 'D' && fieldType != 'DT' && fieldType!='T') {

then they are considered date type fields and work just great (I have no 
idea if DT is a valid fieldtype, but when these go through that code 
they are T)


Alan.


More information about the vtigercrm-developers mailing list