fix: update options fieldtype to Select only when fieldtype is Data and non-virtual
This commit is contained in:
parent
54625d14ff
commit
52dfc79f5c
1 changed files with 4 additions and 1 deletions
|
|
@ -53,7 +53,10 @@ let docfield_df = computed(() => {
|
|||
args.value.is_table_field = 1;
|
||||
}
|
||||
}
|
||||
if (store.form.selected_field.fieldtype === "Data") {
|
||||
if (
|
||||
store.form.selected_field.fieldtype === "Data" &&
|
||||
!store.form.selected_field.is_virtual
|
||||
) {
|
||||
df.fieldtype = "Select";
|
||||
df.options = ["", "Email", "Name", "Phone", "URL", "Barcode", "IBAN"];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue