Users belong to a company, and may belong to a department inside that company.
Companies thus have multiple departments. Departments belong to a company.
When editing a user’s department, all departments of all companies appear regardless of the user’s company.
Expected behavior
Only departments of the user’s company should appear.
We used to achieve this by hacking into the router’s get and checking the context of the request.
How can we achieve this post-migration?
Failure Logs
We’re getting The user record you are trying to update is invalid errors when editing users which we expect to be linked to this issue. We’re not sure however.
Context
Agent technology: nodejs
Agent (forest package) name & version: 1.40.1 with sequelize 6.37.3 and sequelize-typescript 2.1.6
Database type: MSSQL
Recent changes made on your end if any: Migrated from old agent.
I’m glad that you have found a way to resolve your issue. However, I’m not sure in which context you were working. the record edition view ? a smart action ? a workspace ?
Please mark this post as resolved if your issue is solved