Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid resetting employee on amending timesheets #28025

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

ruchamahabal
Copy link
Member

Before Fix:

If a timesheet with employee field set is amended, it resets employee details and since it is a non-mandatory field user can miss this, save and submit the timesheet without setting the employee again. This is because the timesheet tries to set the employee from session user on load.

timesheet-employee-reset

After Fix:

Don't reset employee details if already set

employee-reset-fix

@ruchamahabal
Copy link
Member Author

@Mergifyio backport version-13-hotfix

@mergify
Copy link
Contributor

mergify bot commented Oct 20, 2021

backport version-13-hotfix

✅ Backports have been created

ruchamahabal added a commit that referenced this pull request Oct 20, 2021
(cherry picked from commit 261f80c)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…rappe#28026)

(cherry picked from commit 261f80c)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant