mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: save address df not found issue
This commit is contained in:
parent
517a0cc6d8
commit
45e0af46f3
@ -21,6 +21,7 @@
|
|||||||
:column-ratio="columnRatio"
|
:column-ratio="columnRatio"
|
||||||
:no-border="true"
|
:no-border="true"
|
||||||
:focus-first-input="true"
|
:focus-first-input="true"
|
||||||
|
:autosave="false"
|
||||||
@error="(msg) => $emit('error', msg)"
|
@error="(msg) => $emit('error', msg)"
|
||||||
/>
|
/>
|
||||||
<div class="flex px-4 pb-2">
|
<div class="flex px-4 pb-2">
|
||||||
@ -33,7 +34,7 @@
|
|||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="ml-2 w-1/2 text-white"
|
class="ml-2 w-1/2 text-white"
|
||||||
@click="saveInlineEditDoc"
|
@click="() => saveInlineEditDoc(df)"
|
||||||
>
|
>
|
||||||
{{ df.inlineSaveText || t('Save') }}
|
{{ df.inlineSaveText || t('Save') }}
|
||||||
</Button>
|
</Button>
|
||||||
@ -160,7 +161,7 @@ let TwoColumnForm = {
|
|||||||
return this.evaluateBoolean(df.hidden, false);
|
return this.evaluateBoolean(df.hidden, false);
|
||||||
},
|
},
|
||||||
onChange(df, value) {
|
onChange(df, value) {
|
||||||
if (value == null) {
|
if (value == null || df.inline) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +172,7 @@ let TwoColumnForm = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.emitChange && !df.inline) {
|
if (this.emitChange) {
|
||||||
this.$emit('change', df, value, oldValue);
|
this.$emit('change', df, value, oldValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +224,7 @@ let TwoColumnForm = {
|
|||||||
this.doc.meta.inlineEditDisplayField || 'name';
|
this.doc.meta.inlineEditDisplayField || 'name';
|
||||||
this.inlineEditFields = frappe.getMeta(df.target).getQuickEditFields();
|
this.inlineEditFields = frappe.getMeta(df.target).getQuickEditFields();
|
||||||
},
|
},
|
||||||
async saveInlineEditDoc() {
|
async saveInlineEditDoc(df) {
|
||||||
if (!this.inlineEditDoc) {
|
if (!this.inlineEditDoc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user