- Ricerca Titolo per nome o autore o ISBN o codice articolo
This commit is contained in:
@@ -4168,12 +4168,16 @@ export const fieldsTable = {
|
||||
if (myrec) return ((myrec.colkey) ? myrec.colkey : '_id')
|
||||
return '_id'
|
||||
},
|
||||
getLabelByTable(mytable: string): string {
|
||||
const myrec = this.getrecTableList(mytable)
|
||||
if (myrec) { // @ts-ignore
|
||||
return ((myrec.collabel) ? myrec.collabel : 'label')
|
||||
getLabelByTable(mytable: string, collabel?: any): string {
|
||||
if (collabel) {
|
||||
return collabel
|
||||
} else {
|
||||
const myrec = this.getrecTableList(mytable)
|
||||
if (myrec) { // @ts-ignore
|
||||
return ((myrec.collabel) ? myrec.collabel : 'label')
|
||||
}
|
||||
return 'label'
|
||||
}
|
||||
return 'label'
|
||||
},
|
||||
getValByTabAndId(table: string, field: string, idvalue: any) {
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
@@ -2835,13 +2835,14 @@ export const tools = {
|
||||
}
|
||||
},
|
||||
|
||||
async saveFieldToServer(mythisq: any, table: string, id: any, mydata: any, notif = true) {
|
||||
async saveFieldToServer(mythisq: any, table: string, id: any, mydata: any, notif = true, aggiornainmem = true) {
|
||||
|
||||
const mydatatosave = {
|
||||
id,
|
||||
table,
|
||||
fieldsvalue: mydata,
|
||||
notifBot: null,
|
||||
aggiornainmem,
|
||||
}
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
@@ -9637,6 +9638,9 @@ export const tools = {
|
||||
if (!myrec.dimensioni) {
|
||||
myrec.dimensioni = this.resetRecIDimensioni(null)
|
||||
}
|
||||
if (!myrec.testo_title) {
|
||||
myrec.testo_title = this.resetIText(null)
|
||||
}
|
||||
if (!myrec.testo_up) {
|
||||
myrec.testo_up = this.resetIText(null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user