Timesheet integration on Employee Center

jbarbieux
Tera Contributor

Hello everyone,

I am integrating timesheets on employee center by adding a menu item linking to the 'worker_portal' page (see 'Timesheets' button on top right.

 

Doing this, I saw the header widget (allowing to choose previous/next or any timesheet) was directing the user to the timesheet portal and followed the solution proposed here to avoid this behaviour (and thus stay on EC).

 

Although I still face a small issue (this behaviour already existed  before I fixed the redirection to timesheet portal) : when I open the EC and go to the timesheet page via the menu item, the header widget does not work. I can't select a date, previous nor next timesheet.

-> I tried to inspect the page and it throws an error when I click on the header: "Cannot read properties of undefined (reading 'destroy')"

However, if I then go to another page and come back to timesheet page (via menu item), the widget then works.

 

That's definitively not ideal as the end users shouldn't open the page multiple times before it works as expected...

 

Do you have any idea on how to fix this and get the widget to work the first time this page is opened?

0 REPLIES 0