2
0
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:
18alantom 2022-02-02 13:22:37 +05:30
parent 517a0cc6d8
commit 45e0af46f3

View File

@ -21,6 +21,7 @@
:column-ratio="columnRatio"
:no-border="true"
:focus-first-input="true"
:autosave="false"
@error="(msg) => $emit('error', msg)"
/>
<div class="flex px-4 pb-2">
@ -33,7 +34,7 @@
<Button
type="primary"
class="ml-2 w-1/2 text-white"
@click="saveInlineEditDoc"
@click="() => saveInlineEditDoc(df)"
>
{{ df.inlineSaveText || t('Save') }}
</Button>
@ -160,7 +161,7 @@ let TwoColumnForm = {
return this.evaluateBoolean(df.hidden, false);
},
onChange(df, value) {
if (value == null) {
if (value == null || df.inline) {
return;
}
@ -171,7 +172,7 @@ let TwoColumnForm = {
return;
}
if (this.emitChange && !df.inline) {
if (this.emitChange) {
this.$emit('change', df, value, oldValue);
}
@ -223,7 +224,7 @@ let TwoColumnForm = {
this.doc.meta.inlineEditDisplayField || 'name';
this.inlineEditFields = frappe.getMeta(df.target).getQuickEditFields();
},
async saveInlineEditDoc() {
async saveInlineEditDoc(df) {
if (!this.inlineEditDoc) {
return;
}