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

Mapped field to locale results in label and code swapped #12851

Open
1 task done
RCheesley opened this issue Oct 31, 2023 · 3 comments
Open
1 task done

Mapped field to locale results in label and code swapped #12851

RCheesley opened this issue Oct 31, 2023 · 3 comments
Labels
bug Issues or PR's relating to bugs contacts Anything related to contacts forms Anything related to forms T1 Low difficulty to fix (issue) or test (PR)

Comments

@RCheesley
Copy link
Sponsor Member

Mautic Version

4.4.x series

PHP version

8

What browsers are you seeing the problem on?

No response

What happened?

This has been a bug since version 4 and maybe before then.

If you create a form and then you add a field for preferred locale, and connect it up to the contact field of the same name, when the form is rendered in the front end you see the language code rather than the name of the language.

You can see this in action at mautic.org/download!

Guessing it's one of those label/key reversals that were missed in the past!

How can we reproduce this issue?

Step 1: create form
Step 2: add a field with the select type, call it preferred language
Step 3: connect the field up to the preferred locale field and allow the contact field list items to be used

When you preview the form you will notice that instead of seeing the use of friendly language you see the language code.

Relevant log output

No response

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct
@RCheesley RCheesley added bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged forms Anything related to forms contacts Anything related to contacts T1 Low difficulty to fix (issue) or test (PR) labels Oct 31, 2023
@mautibot
Copy link

This issue has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/post-thanksgiving-boost-contribute-to-mautic-this-open-source-friday/30038/1

@escopecz escopecz modified the milestones: 5.0-RC2, 5.0.0 Dec 19, 2023
@escopecz
Copy link
Sponsor Member

escopecz commented Jan 2, 2024

This has always been there. Not a M5 regression.

@escopecz escopecz removed the needs-triage For new issues/PRs that need to be triaged label Jan 2, 2024
@escopecz escopecz removed this from the 5.0.0 milestone Jan 2, 2024
Copy link

stale bot commented Apr 22, 2024

This issue or PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you would like to keep it open please let us know by replying and confirming that this is still relevant to the latest version of Mautic and we will try to get to it as soon as we can. Thank you for your contributions.

@stale stale bot added the stale Issues which have not received an update within 90 days label Apr 22, 2024
@RCheesley RCheesley removed the stale Issues which have not received an update within 90 days label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs contacts Anything related to contacts forms Anything related to forms T1 Low difficulty to fix (issue) or test (PR)
Projects
None yet
Development

No branches or pull requests

3 participants