[Vtigercrm-developers] Bug in Scheduled Reports Windows

Uma S uma.s at vtiger.com
Thu Apr 23 16:14:34 GMT 2015


Hi,

Thanks! for the the notification, it's good if can create a trac ticket we
will get this fixed in source soon.

On Thu, Apr 23, 2015 at 5:01 PM, Pablo Mazza <pablo.mazza at gmail.com> wrote:

> Hello,
>
> I found a bug that is causing the function writeReportToCSVFile($fileName)
> to crash when trying to create the temporary file for the scheduled report.
>
> The filename used has invalid (:) characters for the Windows filesystem
> and therefore fopen(+w) fails.
>
> The problem lies in the function Sendmail() in ScheduledReports.php where
> the name of the file is generated, appending the timestamp to the report
> name in this format:
>
> $currentTime = date('Y-m-d:H:i:s');
>
> This can be easily fixed by changing the : for other character like this:
>
> $currentTime = date('Y-m-d.H.i.s');
>
> I tested the fix and works well now.
>
> Let me know if you want me to report it on track.vtiger.com
>
> Thank you
> PM
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150423/0a8840fa/attachment.html>


More information about the vtigercrm-developers mailing list