- corretto img profilo

- corretto coordinata non obbligatoria
This commit is contained in:
Surya Paolo
2024-09-17 18:50:05 +02:00
parent b9a5c54071
commit d4e0f2cf1a
44 changed files with 155 additions and 96 deletions

View File

@@ -8838,24 +8838,32 @@ export const tools = {
}
},
getImgFileToSaveByFilename(filename_o_rec: any) {
if (filename_o_rec && filename_o_rec.imagefile) {
return filename_o_rec.imagefile
} else {
return filename_o_rec
}
},
async saveInDBForTypes($q: any, mykey: string, newval: any, type: any, serv: boolean, table?: string, mysubkey: string, id: any, indrec?: number, mysubsubkey: string, specialField: ISpecialField): boolean {
const { setValDb, getValDb } = MixinBase()
let eseguito = false
if (table === 'myelems') {
if (type === costanti.FieldType.image && newval.imagefile) {
// if (table === 'myelems') {
if (type === costanti.FieldType.image && newval.imagefile) {
let myval = newval.imagefile
setValDb($q, mykey, myval, type, serv, table, mysubkey, id, indrec, mysubsubkey, specialField)
myval = newval.vers_img
let mykey2 = 'vers_img'
setValDb($q, mykey2, myval, type, serv, table, mysubkey, id, indrec, mysubsubkey, specialField)
let myval = newval.imagefile
setValDb($q, mykey, myval, type, serv, table, mysubkey, id, indrec, mysubsubkey, specialField)
myval = newval.vers_img
let mykey2 = 'vers_img'
setValDb($q, mykey2, myval, type, serv, table, mysubkey, id, indrec, mysubsubkey, specialField)
eseguito = true
}
eseguito = true
}
// }
if (!eseguito) {