Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception if default value has wrong datatype #1406

Closed
Fasse opened this issue Apr 30, 2023 · 0 comments
Closed

Uncaught exception if default value has wrong datatype #1406

Fasse opened this issue Apr 30, 2023 · 0 comments
Assignees
Milestone

Comments

@Fasse
Copy link
Member

Fasse commented Apr 30, 2023

If you have a profile field with the datatype number and you insert a default value like test than the following error occurs

Fatal error: Uncaught AdmException: Das Feld Mitgliedsnummer darf nur Zahlen enthalten.
Korrigiere bitte deine Eingabe. in /admidio/adm_program/system/classes/ProfileFields.php:682 Stack trace: #0 /admidio/adm_program/system/classes/User.php(1959): ProfileFields->setValue('MEMBERSHIP_NUMB...', 'Hallo') #1 /admidio/adm_program/system/classes/User.php(1767): User->setValue('MEMBERSHIP_NUMB...', 'Hallo') #2 /admidio/adm_program/system/classes/User.php(1632): User->setDefaultValues() #3 /admidio/adm_program/modules/profile/profile_new.php(55): User->readDataByUuid('') #4 {main} thrown in /admidio/adm_program/system/classes/ProfileFields.php on line 682

`
View forum https://www.admidio.org/forum/viewtopic.php?t=9630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant