fix: set fieldname to handle edit value modal
(cherry picked from commit c104b1b8b40d78e11d5a181c046bc4f77e40bb74)
This commit is contained in:
parent
e8f81ec2e7
commit
cd24337dfc
@ -37,7 +37,13 @@
|
|||||||
import Link from '@/components/Controls/Link.vue'
|
import Link from '@/components/Controls/Link.vue'
|
||||||
import Autocomplete from '@/components/frappe-ui/Autocomplete.vue'
|
import Autocomplete from '@/components/frappe-ui/Autocomplete.vue'
|
||||||
import { capture } from '@/telemetry'
|
import { capture } from '@/telemetry'
|
||||||
import { FormControl, call, createResource, TextEditor, DatePicker } from 'frappe-ui'
|
import {
|
||||||
|
FormControl,
|
||||||
|
call,
|
||||||
|
createResource,
|
||||||
|
TextEditor,
|
||||||
|
DatePicker,
|
||||||
|
} from 'frappe-ui'
|
||||||
import { ref, computed, onMounted, h } from 'vue'
|
import { ref, computed, onMounted, h } from 'vue'
|
||||||
|
|
||||||
const typeCheck = ['Check']
|
const typeCheck = ['Check']
|
||||||
@ -70,7 +76,7 @@ const fields = createResource({
|
|||||||
},
|
},
|
||||||
transform: (data) => {
|
transform: (data) => {
|
||||||
return data.filter((f) => f.hidden == 0 && f.read_only == 0)
|
return data.filter((f) => f.hidden == 0 && f.read_only == 0)
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -103,7 +109,7 @@ function updateValues() {
|
|||||||
docnames: Array.from(props.selectedValues),
|
docnames: Array.from(props.selectedValues),
|
||||||
action: 'update',
|
action: 'update',
|
||||||
data: {
|
data: {
|
||||||
[field.value.value]: fieldVal || null,
|
[field.value.fieldname]: fieldVal || null,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
).then(() => {
|
).then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user