Error when scheduling a report in version 5.6

Juliano 3 years ago

Every time I try to create a schedule for a report, the error below appears, but it generates the schedule. Has anyone gone through this to help me out?

ERROR
Cannot read properties of undefined (reading 'name')
TypeError: Cannot read properties of undefined (reading 'name')
Anton Tananaev 3 years ago

Have you tried if it's happening on master?

Juliano 3 years ago

Yes, I already did the test with the master/admin user

Anton Tananaev 3 years ago

I'm talking about about master branch in the repository. The latest code.

Juliano 3 years ago

No, not in this case, because I already changed many files that were previously posted, so the question

Anton Tananaev 3 years ago

Can you please try and see if it has the issue.

Juliano 3 years ago

I just tested on https://demo.traccar.org/ server, same error

Anton Tananaev 3 years ago

Demo servers run the official release, so they won't really help with testing the latest code.

Juliano 3 years ago

I found the problem, now I'm trying to solve it. The error is when showing the calendar name field in the ScheduledPage.js file.

{calendars[item.calendarId].name}

if I remove the reference from the name the error disappears. I'll try to fix it, if I can I'll post it here

Anton Tananaev 3 years ago

I'm pretty sure it's already fixed and that's why I'm asking you to test master, which you're refusing for some reason.

Juliano 3 years ago

I'm already checking it, I'll report if it worked