fix
This commit is contained in:
parent
c742e27887
commit
7dbb096fc0
|
|
@ -127,7 +127,7 @@ export const TypeDropdown: FC<{
|
||||||
selected: values,
|
selected: values,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
allowNew={true}
|
allowNew={false}
|
||||||
autoPopupWidth={true}
|
autoPopupWidth={true}
|
||||||
focusOpen={true}
|
focusOpen={true}
|
||||||
mode={"multi"}
|
mode={"multi"}
|
||||||
|
|
|
||||||
|
|
@ -143,14 +143,18 @@ async ({ form, error, fm }: IForm) => {
|
||||||
) => {
|
) => {
|
||||||
if (list.length) {
|
if (list.length) {
|
||||||
const data = current.data.map((e) => {
|
const data = current.data.map((e) => {
|
||||||
return {
|
const record = {
|
||||||
...e,
|
...e,
|
||||||
m_role: {
|
${table}: {
|
||||||
connect: {
|
connect: {
|
||||||
${pk}: form.${pk},
|
${pk}: form.${pk},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
call_prasi_events("form", "before_save", [fm, record]);
|
||||||
|
|
||||||
|
return record;
|
||||||
});
|
});
|
||||||
await db._batch.upsert({
|
await db._batch.upsert({
|
||||||
table: current.table,
|
table: current.table,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue