-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CiviEvent - Fix missing default values for required fields in event registration setup #25410
CiviEvent - Fix missing default values for required fields in event registration setup #25410
Conversation
(Standard links)
|
be1bdee
to
bccb826
Compare
Thanks @larssandergreen can you put against 5.58? |
bccb826
to
2fa95a7
Compare
Fun with git. You'll need to do something like
where upstream is the real civi repo. |
7a0d81b
to
63b7f89
Compare
Jenkins re test this please |
test this please |
…ring as the same problem
I did some There were test failures in |
I didn't see the test failures, but looking at |
Thanks @larssandergreen. Applied the same to the backport. |
Test failures are unrelated. |
Overview
#24863 caused a regression so that the default values were no longer set for the required fields on the Online Registration tab when configuring an event (as noted on Stack Exchange). The cause was that the default values were being set to null from API4 whereas previously the array keys did not exist.
I replaced all uses of Civi_Util_Array:value with ?? in this function. I also made the Registration Link Text required, which seems to be the original intent (if you don't enter a value, the default is used anyways). If this wasn't changed, there would be odd behaviour if the field was set to nothing, resulting in it being re-filled with the default.
Before
No default values, which is annoying because you are still forced to enter a title for the confirmation screen even if it is disabled.
After
Default values loaded as before.