8000 fix: only get fields which is not already in webform fields table by shariquerik · Pull Request #18960 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: only get fields which is not already in webform fields table #18960

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

Merged
merged 1 commit into from
Nov 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frappe/website/doctype/web_form/web_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ frappe.ui.form.on("Web Form", {
.get_field("Web Form Field", "fieldtype")
.options.split("\n");

let added_fields = (frm.doc.fields || []).map((d) => d.fieldname);
let added_fields = (frm.doc.web_form_fields || []).map((d) => d.fieldname);

get_fields_for_doctype(frm.doc.doc_type).then((fields) => {
for (let df of fields) {
Expand Down
0