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(Payroll): multiline condition & formula eval failing (backport #2138) #2139

Merged
merged 3 commits into from
Aug 31, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 31, 2024

Problem

Regression #2088
Multiline condition & formula eval failing because the last update tries to parse dependent component formulas without the sanitized expression.

Multiline formula:
image

image

Fix

Sanitize condition & formula fields in salary structure doc reference to avoid accidental references to unsanitized fields across functions

image

Fix in salary structure: Multiline formula updates error out on submitted doc because sanitization was only done on before_validate. Sanitize expression fields on before_update_after_submit too


This is an automatic backport of pull request #2138 done by Mergify.

- sanitize condition & formula fields in structure doc reference to avoid accidental reference to unsanitized fields across functions

regression: #2088
(cherry picked from commit 3057298)
…fter_submit` too

- multiline formula updates error out on submitted doc because sanitization was only done on `before_validate`

(cherry picked from commit f95da27)
@mergify mergify bot requested a review from ruchamahabal as a code owner August 31, 2024 07:40
@ruchamahabal ruchamahabal merged commit e2f8d8a into version-15-hotfix Aug 31, 2024
7 checks passed
@mergify mergify bot deleted the mergify/bp/version-15-hotfix/pr-2138 branch August 31, 2024 07:50
@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 15.28.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

2 participants