- corretto img profilo
- corretto coordinata non obbligatoria
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user