Quick fix to exporting

Permalink Browser Info Environment
Hi Macareux Team,

I just picked up a little bug with this add-on in terms of exporting, that I thought I should pass on.

When I tried exporting on a client site, it was complaining about not being able to call getUserName() as part of the export. I think this is because some users have been deleted from the site.

In C5jFileDownloadStatistics\Export\DownloadStatisticsExporter, I've just changed in the function formatRows(), to these two lines:
$row->getFile() ? $row->getFile()->getFileName() : '',
$row->getUser() ? $row->getUser()->getUserName() : '',


There's probably a more efficient way to do that, but it was a quick fix that worked.

Cheers
-Ryan

Type: Ticket
Status: Resolved
mesuva
View Replies:
concrete5cojp replied on at Permalink Reply
concrete5cojp
Hi mesuva,

Thanks for letting us know.
We're sorry for replying late.
We released a new version 1.0.3 including your fix.

Thanks.

concrete5 Environment Information

NA

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.