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

[5.3] Revert #44161 #44462

Merged

Conversation

bembelimen
Copy link
Contributor

@bembelimen bembelimen commented Nov 14, 2024

Summary of Changes

With #44161 the limitation that custom fields has to be unique system wide was removed. This could break when e.g. a plugin loads custom fields from another extension into a form.

To simulare the problem

  • Enable the user registration
  • Create a custom text field called "Foobar" in com_users
  • Create a custom list field called "Foobar" in com_contact (and add some options)
  • Go to and add the following code to components/com_users/tmpl/registration/default.php line 23:
Joomla\Component\Fields\Administrator\Helper\FieldsHelper::prepareForm('com_contact.contact', $this->form, []);

  • Go to the user registration

Expected result

two "Foobar" fields visible

Actual problem

Only one "Foobar" field is loaded, the fields are conflicting. This has also different effect when e.g. saving etc.

Solution

I like in general the idea of the original PR, but it has to be in a Major version respecting the B/C rules.

@Hackwar

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-5.3-dev labels Nov 14, 2024
@laoneo
Copy link
Member

laoneo commented Nov 15, 2024

Thanks @bembelimen!

@richard67
Copy link
Member

I have tested this item ✅ successfully on 2cba929

Hint for other testers: When having applied this PR, it is not enough just to visit the user registration again to see both fields. You have to edit one of the 2 fields again (or proceed again from the start where you have none of these fields yet). Then you won't be able to save the field (2nd in case if you started again from scratch). You have to manually chose a different name, then you can save, and then you will see both fields in the user registration.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44462.

@Quy
Copy link
Contributor

Quy commented Nov 15, 2024

I have tested this item ✅ successfully on 2cba929


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44462.

@Quy
Copy link
Contributor

Quy commented Nov 15, 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44462.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 15, 2024
@Quy Quy added this to the Joomla! 5.3.0 milestone Nov 16, 2024
@HLeithner HLeithner merged commit af4f13d into joomla:5.3-dev Nov 16, 2024
4 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 16, 2024
@HLeithner
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Change This is for Translators PR-5.3-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants