From 8fa6757cc951e3b12cba0e99be61af8f741e26f1 Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Sun, 7 Jan 2024 17:27:27 +0100 Subject: [PATCH] Corretto il pagato - fix Group Add link --- src/components/CGridTableRec/CGridTableRec.ts | 6 +++++- src/components/CGridTableUser/CGridTableUser.ts | 6 +++++- src/components/CMyPopupEdit/CMyPopupEdit.vue | 10 +++++++--- src/model/GlobalStore.ts | 2 ++ src/statics/lang/it.js | 3 ++- src/store/Modules/fieldsTable.ts | 6 +++++- src/store/Modules/tools.ts | 12 +++++++++++- 7 files changed, 37 insertions(+), 8 deletions(-) diff --git a/src/components/CGridTableRec/CGridTableRec.ts b/src/components/CGridTableRec/CGridTableRec.ts index 90282090..fbcbd615 100755 --- a/src/components/CGridTableRec/CGridTableRec.ts +++ b/src/components/CGridTableRec/CGridTableRec.ts @@ -1984,7 +1984,11 @@ export default defineComponent({ if (col.field_toduplicate_nospace) { // let trovato = tools.removespecial_chars(myobj[col.name]) - myobj[col.field_toduplicate_nospace] = trovato + if (myobj[col.field_toduplicate_nospace] === '') { + myobj[col.field_toduplicate_nospace] = trovato + } + let attuale = tools.removespecial_chars(myobj[col.field_toduplicate_nospace]) + myobj[col.field_toduplicate_nospace] = attuale // console.log('trovato', trovato, 'name', myobj[col.name], 'duplicate:', myobj[col.field_toduplicate_nospace], 'orig', myobj[col.name]) } }) diff --git a/src/components/CGridTableUser/CGridTableUser.ts b/src/components/CGridTableUser/CGridTableUser.ts index f6424442..79f94e56 100755 --- a/src/components/CGridTableUser/CGridTableUser.ts +++ b/src/components/CGridTableUser/CGridTableUser.ts @@ -1952,7 +1952,11 @@ export default defineComponent({ if (col.field_toduplicate_nospace) { // let trovato = tools.removespecial_chars(myobj[col.name]) - myobj[col.field_toduplicate_nospace] = trovato + if (myobj[col.field_toduplicate_nospace] === '') { + myobj[col.field_toduplicate_nospace] = trovato + } + let attuale = tools.removespecial_chars(myobj[col.field_toduplicate_nospace]) + myobj[col.field_toduplicate_nospace] = attuale // console.log('trovato', trovato, 'name', myobj[col.name], 'duplicate:', myobj[col.field_toduplicate_nospace], 'orig', myobj[col.name]) } }) diff --git a/src/components/CMyPopupEdit/CMyPopupEdit.vue b/src/components/CMyPopupEdit/CMyPopupEdit.vue index 106b6c06..193f3c9b 100755 --- a/src/components/CMyPopupEdit/CMyPopupEdit.vue +++ b/src/components/CMyPopupEdit/CMyPopupEdit.vue @@ -85,8 +85,7 @@ v-if=" col.extrafield && (col.tipovisu !== costanti.TipoVisu.LINK || - (col.tipovisu === costanti.TipoVisu.LINK && - myvalue)) + (col.tipovisu === costanti.TipoVisu.LINK && myvalue)) " > {{ $t(col.extrafield) }} @@ -205,7 +204,7 @@ col.fieldtype === costanti.FieldType.crypted " > -
+
+ + Diventerà: {{tools.generateURL(col.showLinkResult, myvalue)}} + + +