Wednesday, February 28, 2024
2 changes · master
Resolved issues and error corrections
Fixed an issue where copying a task item in the Gantt timeline could fail after recent batch duplication changes. Users can now duplicate task timeline items reliably, while scheduling warnings continue to appear only when relevant.
Original PR description
Before this commit, since the recent changes to allow the duplication in batch, the duplication of a pill in task gantt view no longer works and raised a traceback. The reason is because the copy will now return an array and so the `openPlanDialogCallback` function will do a for each on that array to display eventual warnings, that override is in fact only when smart task scheduling is called and not for the other actions (copy, reschedule, etc). This commit checks if the result given in parameter for `openPlanDialogCallback` is not falsy and not an array before doing a for each on the object to display the eventual warnings to display.
Fixed an issue that could block moving an applicant to the first recruitment stage when the applicant was not linked to a job application. This helps recruitment workflows continue smoothly without template-related errors.
Original PR description
With this commit, an applicant without a job's applicantion can be moved to stage 1 without template issue. task : 3681692