RTC Language Change PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
14 Nov 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

avatar bembelimen bembelimen - open - 14 Nov 2024
avatar bembelimen bembelimen - change - 14 Nov 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2024
Category Administration com_fields Language & Strings
avatar bembelimen bembelimen - change - 14 Nov 2024
The description was changed
avatar bembelimen bembelimen - edited - 14 Nov 2024
avatar bembelimen bembelimen - change - 14 Nov 2024
The description was changed
avatar bembelimen bembelimen - edited - 14 Nov 2024
avatar bembelimen bembelimen - change - 14 Nov 2024
The description was changed
avatar bembelimen bembelimen - edited - 14 Nov 2024
avatar bembelimen bembelimen - change - 14 Nov 2024
The description was changed
avatar bembelimen bembelimen - edited - 14 Nov 2024
avatar laoneo
laoneo - comment - 15 Nov 2024

Thanks @bembelimen!

avatar richard67 richard67 - test_item - 15 Nov 2024 - Tested successfully
avatar richard67
richard67 - comment - 15 Nov 2024

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.

avatar Quy Quy - test_item - 15 Nov 2024 - Tested successfully
avatar Quy
Quy - comment - 15 Nov 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.

avatar Quy Quy - change - 15 Nov 2024
Status Pending Ready to Commit
Labels Added: Language Change PR-5.3-dev
avatar Quy
Quy - comment - 15 Nov 2024

RTC


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

avatar HLeithner HLeithner - change - 16 Nov 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-11-16 16:43:43
Closed_By HLeithner
Labels Added: RTC
avatar HLeithner HLeithner - close - 16 Nov 2024
avatar HLeithner HLeithner - merge - 16 Nov 2024
avatar HLeithner
HLeithner - comment - 16 Nov 2024

Thanks

Add a Comment

Login with GitHub to post a comment