Profile Field special character problem?

If you aren't speaking german, you can ask for support or post your request here.
Antworten
RVice
Beiträge: 53
Registriert: 3. Mai 2021, 21:13

Profile Field special character problem?

Beitrag von RVice »

https://github.com/Admidio/admidio/issues/1516

The issue above has a radio field with an option with N/A and that is the default value (requires editing the field and adding N/A as creation from the start does not work as it's "not a valid value").

With the fix to issue 1516, now I see "deleted value" on all the records where N/A should be set.

I assume the fix to this is to either handle the '/' character as a valid parameter, or prevent the value from getting stored (both on create and edit).

I seem to have broke the Playground with the scenario above (which I assume may not include the fix 1516 put in):
https://www.admidio.org/playground/adm_ ... 65f50abed9
Benutzeravatar
fasse
Administrator
Beiträge: 6182
Registriert: 12. Nov 2005, 16:06

Re: Profile Field special character problem?

Beitrag von fasse »

Until now it's necessary to add the index value to the default value as described in the field information. You have added the "text value".

Could you please try it with the index value of the entry e.g. 3
RVice
Beiträge: 53
Registriert: 3. Mai 2021, 21:13

Re: Profile Field special character problem?

Beitrag von RVice »

Ok, tried that. Default value works, but there's a problem with the "---" value now (something that is default available for radio buttons)

Selecting "---" on the user creates the same issue. Note, I believe "---" is the default value if no default is specified. So, seems like something broke going to 4.2.13.

Here's another contact after I changed the default value to "5" for the radio button and select "---" as the entry
https://www.admidio.org/playground/adm_ ... 3ce83f0b87

Note, after the fix for "Deleted entry", I still see "Deleted entry" when "---" is selected.
Benutzeravatar
fasse
Administrator
Beiträge: 6182
Registriert: 12. Nov 2005, 16:06

Re: Profile Field special character problem?

Beitrag von fasse »

I have fixed the problem with "---" for the next version. There is also a better check for the default value.
RVice
Beiträge: 53
Registriert: 3. Mai 2021, 21:13

Re: Profile Field special character problem?

Beitrag von RVice »

Tried out the fix, looks like it's working. Thanks!
Antworten