Merge pull request #9851 from fumin/patch-1
fix: web form not submitting data in grid views
This commit is contained in:
commit
82a6715cb3
1 changed files with 3 additions and 2 deletions
|
|
@ -105,13 +105,14 @@ export default class WebForm extends frappe.ui.FieldGroup {
|
|||
this.validate && this.validate();
|
||||
|
||||
// validation hack: get_values will check for missing data
|
||||
let isvalid = super.get_values(this.allow_incomplete);
|
||||
let doc_values = super.get_values(this.allow_incomplete);
|
||||
|
||||
if (!isvalid) return;
|
||||
if (!doc_values) return;
|
||||
|
||||
if (window.saving) return;
|
||||
let for_payment = Boolean(this.accept_payment && !this.doc.paid);
|
||||
|
||||
Object.assign(this.doc, doc_values);
|
||||
this.doc.doctype = this.doc_type;
|
||||
this.doc.web_form_name = this.name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue