[Vtigercrm-developers] R: Dates in workflow emails are defaulted to today

Alan Lord alanslists at gmail.com
Thu Jan 28 09:10:22 GMT 2016


On 28/01/16 08:26, IT&M srl - Riccardo Guerriero wrote:
> Hi Al,
> in fact, the fields do default to empty when they are shown in any view of the CRM.
>
> That's because most of those views get the display value of the field with the corresponding function found in the UI type file (in my case, modules/Vtiger/uitypes/Date.php).
> That function, in case of empty value, returns an empty value (duh).
>
> Instead, the VTSimpleTemplate.inc, found in modules/com_vtiger_workflow uses another getDisplayValue function, this time found in include/fields/DateTimeField.php , for whatever reason.
> I can't edit any of those last two files, because I don't know if, when and how they are called.

Interesting I was looking at that file myself yesterday. It is the 
culprit in introducing a double "<br>" into the SendSMS Workflow task ;-)


Al




More information about the vtigercrm-developers mailing list