Summary: Two Time Entries are shown for the user if a Investment has 'Allow Time Entry for the Unstaffed Resource' flag as true and user is a member of a 'Team' staffed on the investment.
Steps to Reproduce:
- Create a user with Timesheet and Project View rights.
- Update the 'Open for Time Entry' to true and Track mode to 'PPM'.
- Go to 'Team Investment' page and Create a Team investment and staff the above user to it.
- Go to the 'Resources -> Team' page and update the 'Open for Time Entry' to true and Track mode to 'PPM'.
- Navigate to the projects page.
- Create a project instance and update the 'Allow Time Entry for the Unstaffed Resource' flag to true.
- Now on the Project Staff page, add the above team.
- Login as the above user.
- Navigate to 'Timesheets' page and ensure timesheet page is displayed for the above user.
- Click on the 'Add Task' button and Ensure effort task for the above project is shown.
- Select the effort task and Add.
- Ensure that time entry is added.
- Observe that 2 time entries are added (1 for the resource and 1 for the team) - Not Expected.
Expected Results: If the user is staffed through a 'Team' and 'Allow Time Entry for the Unstaffed Resource' true for an investment, only 1 time entry should be displayed for the user.
Actual Results: Two time entries appear for the user.
Workaround: None.