[5.4] warn when duplicate subform fields are removed on save#47511
Merged
muhme merged 4 commits intojoomla:5.4-devfrom Apr 2, 2026
Merged
[5.4] warn when duplicate subform fields are removed on save#47511muhme merged 4 commits intojoomla:5.4-devfrom
muhme merged 4 commits intojoomla:5.4-devfrom
Conversation
brianteeman
reviewed
Mar 30, 2026
|
I have tested this item ✅ successfully on 6055428 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47511. |
|
I have tested this item ✅ successfully on 6055428 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47511. |
Member
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47511. |
Contributor
|
✅ Final test before merge with JBT
|
Contributor
|
Thank you very much @krishnagandhicode for your contribution. Thanks to @brianteeman for your support. Thanks to @SRV-KILLER09 and @exlemor for testing. |
Contributor
Author
|
Thanks for the merge, and thanks to everyone who helped test. |
adarshdubey03
pushed a commit
to adarshdubey03/joomla-cms
that referenced
this pull request
Apr 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request resolves #33327
Summary of Changes
This fixes the silent duplicate filed removal behavior for Subform fields
this fix now : on saving a Subform field, check for duplicate selected custom fields in the options list, if found any the duplicates are removed during during save (existing behavior), but now a warning message is shown to the user so the change is not silent and the user is aware of it.
Testing Instructions
Navigate to : Administrator > fields
create a field only give it a title and save and close
now create a new field or type subform (i.e select Subform (subform) in type field) > now go to Fields (at end in General tab) select the same custom field more than once > Save & close
(see the video in Before and after Patch section in this disc. if unclear)
Actual result BEFORE applying this Pull Request
Duplicate subform fields will be removed on save without any warning,
so after save when you check your subform field each custom field appears only once. (but the user is unaware why)
Before.mp4
Expected result AFTER applying this Pull Request
Duplicate subform fields are still cleaned up on save, but users now receive a warning message saying that duplictes were removed and that each field can only be used once
After.mp4
Link to documentations
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed