If you are using a cron job then when the report id emailed the current user is the super admin, not the user who created the report.
It needs to use the login column, which is the user who created the report, to get the email address. It also then needs to distinguish between the superuser and an ordinary user. Something like this but untested style_emoticons/<#EMO_DIR#>/wink.gif
When I looked at the code I thought so too, but not knowing anything about php, I thought it best to ask.
Cheers for the un-tested rewrite.
I’ll put that into my test system and see what happens, in the mean time, I’ll just tell my users to untick the box and put thier email addresses in the text box. Hopefully, that should do until i get a chance to properly test this.
Once I have confirmed it fixes it, how do I submit a ticket/proposed fix?
Also, I’m using Windows but I think the cron job is the same as the powershell script anyway, so I don’t think it really matters.
I’ll try it out tomorrow when I’m back in the office and let you know how I get on.
Any idea how I can force the report to be sent out, without using the email it now link? In other words, is there a flag I can clear to make it seem like the report hasn’t been sent yet, so when I run the powershell script, it sends it out?
I tried clearing the date in the PDF table, but that didn’t seem to do it.