Feature RTC PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar AndySDH
AndySDH
3 Apr 2024

Summary of Changes

When creating a custom field of type Subform, you can select the child fields that you want as part of the Subform.

In the current situation, the dropdown of fields selection doesn't allow to select a Subform to be nested inside a Subform. This was probably done to avoid cluttering the interface too much if somebody wanted to do it.

But there is a legimitate use for this and somebody may want to intentionally have a nested Subform inside a Subform. I am currently having a legitimate use case where I want a Subform inside a Subform and I can't do it because of this limitation. There is no reason to have this limitation, let the user do it if they want to.

Testing Instructions

  • Go to Content -> Fields
  • Make sure you already have a bunch of created fields, as well as a Subform field already created
  • Create a new field of type Subform
  • Look at the "Fields" area to see what child fields you can include with the dropdown

Actual result BEFORE applying this Pull Request

  • A field of type subform is not in the available list of fields in the dropdown

Expected result AFTER applying this Pull Request

  • A field of type subform now is available to be selected

Link to documentations

  • No documentation changes for docs.joomla.org needed
avatar AndySDH AndySDH - open - 3 Apr 2024
avatar AndySDH AndySDH - change - 3 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Apr 2024
Category Administration com_fields
avatar AndySDH AndySDH - change - 3 Apr 2024
The description was changed
avatar AndySDH AndySDH - edited - 3 Apr 2024
avatar AndySDH AndySDH - change - 3 Apr 2024
Labels Added: PR-5.2-dev
avatar AndySDH
AndySDH - comment - 3 Apr 2024

@richard67 Thanks, fixed!

avatar regularlabs
regularlabs - comment - 6 Apr 2024

Seems to do the job.
Test successful ✅

avatar richard67
richard67 - comment - 6 Apr 2024

Seems to do the job. Test successful ✅

@regularlabs Could you please mark your test result in the issue tracker? For this go to https://issues.joomla.org/tracker/joomla-cms/43204 and use the blue "Test this" button at the top left corner, then select your test result and finally submit. Thanks in advance.

avatar regularlabs regularlabs - test_item - 6 Apr 2024 - Tested successfully
avatar regularlabs
regularlabs - comment - 6 Apr 2024

I have tested this item ✅ successfully on 041cd38


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

avatar Quy Quy - test_item - 6 Apr 2024 - Tested successfully
avatar Quy
Quy - comment - 6 Apr 2024

I have tested this item ✅ successfully on 041cd38


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

avatar Quy Quy - change - 6 Apr 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Apr 2024

RTC


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

avatar AndySDH
AndySDH - comment - 6 Apr 2024

Thanks guys!

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
Allow nested Subform inside a Subform Custom Field
[5.2] Allow nested Subform inside a Subform Custom Field
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar HLeithner
HLeithner - comment - 30 Apr 2024

Is an endless loop considered here? subform1 -> subform2 -> subform1

I don't think so, so maybe we should check for recursion at some point (rendering or saving)

avatar AndySDH
AndySDH - comment - 30 Apr 2024

It's not considered, but then again, that would be the user that purposely breaks the form by doing something like that. It's not different then embedding a module inside another module which embeds the module itself, etc. I don't think we need to cover the case where the user does something dumb

avatar pe7er pe7er - change - 7 May 2024
Labels Added: Feature RTC
avatar pe7er pe7er - change - 7 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-07 11:31:48
Closed_By pe7er
avatar pe7er pe7er - close - 7 May 2024
avatar pe7er pe7er - merge - 7 May 2024
avatar pe7er
pe7er - comment - 7 May 2024

Thanks @AndySDH !

Add a Comment

Login with GitHub to post a comment