Thursday, December 28, 2023
1 change · master
Resolved issues and error corrections
This fixes an issue where newly added related records, such as project subtasks, could open before their inherited details were saved. Users now see complete and consistent information when clicking View across affected screens.
Original PR description
Steps: This is a generic issue occurring in different modules. Here, I mention one of the flow in the Project module. Open the Project module. Open any project. Add a subtask. Without manually saving…
Steps: This is a generic issue occurring in different modules. Here, I mention one of the flow in the Project module. Open the Project module. Open any project. Add a subtask. Without manually saving the subtask beforehand, click on 'View'. Form view of sub-task opens that doesn't have any of the fields it should inherit from its parent task. Go back to the parent task using the breadcrumbs. Click on 'View' again. Now, the sub-task has all of its fields set as it should. Issue: After clicking on 'View', the form view of the sub-task opens, but it doesn't have any of the fields it should inherit from its parent task. Cause: On clicking 'View', the switchToForm action is called, and this action doesn't save records before switching to the form view. Also, it should load that record into the Parent task after saving. In other modules, when clicking on 'View', the openRecord action is called, which is also not saving data. Fix: Records should be saved when the action is called on clicking 'View'. For the project module, when the action is called, after saving the record, it should also load records in the parent task. task-3508251