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: fallback to unscrubbed table fieldname if label not found #21826

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

jll-02
Copy link
Contributor

@jll-02 jll-02 commented Jul 27, 2023

The problem was solved in PR #17599 and the backport to 13 was asked for in #21571

Before

There was a problem with missing mandatory fields in a child table without a label. The error thrown looked something like this:

form.js:757 TypeError: Cannot read properties of undefined (reading 'bold')
    at Object.<anonymous> (save.js:159:92)
    at Function.each (jquery.js:385:19)
    at check_mandatory (save.js:120:5)
    at save (save.js:24:48)
    at frappe.ui.form.save (save.js:266:3)
    at form.js:778:21

After

The correct error message will be thrown:
image

@jll-02 jll-02 requested review from a team and shariquerik and removed request for a team July 27, 2023 06:29
frappe/public/js/frappe/form/save.js Outdated Show resolved Hide resolved
frappe/public/js/frappe/form/save.js Outdated Show resolved Hide resolved
jll-02 and others added 2 commits July 27, 2023 13:46
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
@ankush ankush merged commit a8091bb into frappe:version-13-hotfix Jul 27, 2023
10 checks passed
frappe-pr-bot pushed a commit that referenced this pull request Aug 1, 2023
## [13.58.4](v13.58.3...v13.58.4) (2023-08-01)

### Bug Fixes

* fallback to unscrubbed table fieldname if label not found ([#21826](#21826)) ([a8091bb](a8091bb))
* removed the output field from the console log ([#21600](#21600)) ([#21854](#21854)) ([1995035](1995035))

### Performance Improvements

* dont reload doc when already saving ([#21869](#21869)) ([#21876](#21876)) ([706892d](706892d))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 13.58.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants