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

pass in "required" value when building preferred_language form element #18595

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

adixon
Copy link
Contributor

@adixon adixon commented Sep 25, 2020

Overview

As per https://lab.civicrm.org/dev/core/-/issues/1883

When Preferred Language is included in a profile and marked as "required", the form does not respect the 'required' configuration setting (not required in form, not marked as required).

Before

1181

After

1181-patched

Technical Details

Appears to have been a minor coding oversight from a million years ago.

Comments

This might go down as one of the simplest PRs in the history of CiviCRM.

@civibot
Copy link

civibot bot commented Sep 25, 2020

(Standard links)

@civibot civibot bot added the master label Sep 25, 2020
@eileenmcnaughton
Copy link
Contributor

"This might go down as one of the simplest PRs in the history of CiviCRM."

That was an easy sell on getting me to look. Given the code I feel like I'm happy that you have tested it.

@eileenmcnaughton eileenmcnaughton merged commit bccf917 into civicrm:master Sep 25, 2020
@eileenmcnaughton
Copy link
Contributor

Also given that you came back to this after 3 months & still thought it was needed i'm happy to treat present you as the submitter & past you as the reviewer

@adixon
Copy link
Contributor Author

adixon commented Sep 25, 2020

Thanks. Given that 3 months ago I can barely remember what my name was, that's a reasonable assumption.

Also, the site I wrote it for has been using it since then without complaint.

@eileenmcnaughton
Copy link
Contributor

@adixon if you ever wish to put up a PR changing your name I'll make @KarinG review it then...

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

Successfully merging this pull request may close these issues.

2 participants