Il link di un gruppo non può contenere la barra... o altri caratteri speciali

This commit is contained in:
Surya Paolo
2022-11-29 17:35:41 +01:00
parent d6f537473e
commit b8f2320c0a
7 changed files with 46 additions and 16 deletions

View File

@@ -62,6 +62,7 @@ function AddCol(params: IColGridTable) {
disable: (params.disable === undefined) ? false : params.disable,
titlepopupedit: (params.titlepopupedit === undefined) ? '' : params.titlepopupedit,
field_extra1: (params.field_extra1 === undefined) ? '' : params.field_extra1,
field_toduplicate_nospace: (params.field_toduplicate_nospace === undefined) ? '' : params.field_toduplicate_nospace,
subfield_extra1: (params.subfield_extra1 === undefined) ? '' : params.subfield_extra1,
allowNewValue: (params.allowNewValue === undefined) ? false : params.allowNewValue,
showpicprofile_ifnotset: (params.showpicprofile_ifnotset === undefined) ? false : params.showpicprofile_ifnotset,
@@ -672,12 +673,14 @@ export const colmyUserPeople = [
export const colmyUserGroup = [
// AddCol({ name: '_id', label_trans: 'reg.id' }),
AddCol({ name: 'title', label_trans: 'reg.name', required: true, noshowlabel: true, maxlength: 40 }),
AddCol({ name: 'title', label_trans: 'reg.name',
field_toduplicate_nospace: 'groupname',
required: true, noshowlabel: true, maxlength: 40 }),
AddCol({
name: 'groupname', label_trans: 'reg.groupname', required: true,
name: 'groupname', label_trans: 'reg.groupname', required: false,
maxlength: 30,
allowchar: costanti.ALLOWCHAR_CODE,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage,
showWhen: costanti.showWhen.InPage + costanti.showWhen.InEdit
}),
AddCol({
name: 'idCity',
@@ -761,7 +764,7 @@ export const colmyUserGroup = [
}),
AddCol({
name: 'note', label_trans: 'reg.detailsPage', fieldtype: costanti.FieldType.html,
titlepopupedit: 'detailsPage', field_extra1: 'groupname', subfield_extra1: ''
titlepopupedit: 'detailsPage', field_extra1: 'groupname', subfield_extra1: '',
}),
AddCol(ModifRec),
AddCol(DeleteRec),