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: don't overwrite leave approver while rendering leave summary dashboard #1858

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Jun 7, 2024

  • If there are multiple leave approvers set at the department level and you select the second one for the employee, it gets reset to the first set approver in the table since the make_dashboard function overwrites it on refresh. Regression from feat(minor): Show leave allocation table in Leave Application on refresh hook #1375
  • Fix: decouple dashboard creation from leave approver setting since approver is already set on employee change trigger
  • UX fix: link employee & department doc in the error message for missing leave approver
image

Closes: #1764

…board

- leave approver is already set on employee selection after rendering dashboard, decouple both actions
@ruchamahabal ruchamahabal merged commit 291b82a into frappe:develop Jun 7, 2024
9 checks passed
ruchamahabal added a commit that referenced this pull request Jun 7, 2024
…1858

fix: don't overwrite leave approver while rendering leave summary dashboard (backport #1858)
ruchamahabal added a commit that referenced this pull request Jun 7, 2024
…1858

fix: don't overwrite leave approver while rendering leave summary dashboard (backport #1858)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leave Application: Leave approver gets update by the make_dashboard
1 participant