Saturday, July 6, 2024
1 change · master
Resolved issues and error corrections
The appointment schedule now hides resources that are not linked to any appointment, preventing errors when users interact with the booking timeline. This keeps the resource booking view focused on relevant resources and avoids a traceback in normal scheduling workflows.
Original PR description
**How to reproduce:** - Make a new resource - Go to Schedule -> resource booking view (gantt by default) - Click on the timeline of newly created resource This gives a traceback. **Technical Reason:** - The case where resources has no appointment was not handled in the 'appointment_type_sync_duration.js' file. Handling this case with if statements. - The resources are displayed even though they are not attached to any of the appointment. Handling this by adding the domain. **After this PR:** - There will be no traceback on clicking the timeline of resources with no appointment (there will be no such resources due the domain). - Resources which are attached to atleast one of the appointments will only be displayed. Task-4000872