Skip to content

Subforms within subform rows will initialize themselves when new rows…#24919

Merged
HLeithner merged 3 commits intojoomla:stagingfrom
okonomiyaki3000:fix-subform-subform
May 20, 2019
Merged

Subforms within subform rows will initialize themselves when new rows…#24919
HLeithner merged 3 commits intojoomla:stagingfrom
okonomiyaki3000:fix-subform-subform

Conversation

@okonomiyaki3000
Copy link
Copy Markdown
Contributor

Pull Request for Issue # .

Summary of Changes

Subform repeatable has a function fixScripts which calls a few js initialization functions on a few of the field types that require it. There is a now a better way to handle that kind of thing by having any field that may need initialization listen for an event fired by subform repeatable. In this PR, I am transferring responsibility of one such initialization from subform repeatable to the correct field type itself.

Note: this PR doesn't really fix anything. Nest subforms already work with repeatable subforms. This just does it in a somewhat better way.

Testing Instructions

Set up a subform containing a subform. There's a subform in the redirect plugin that's simple to use for this purpose.

Open up the form and create new rows. The subform in each new row should function properly.

Expected result

Nested subforms function normally.

Actual result

Nested subforms function normally.

Documentation Changes Required

None

@Quy
Copy link
Copy Markdown
Contributor

Quy commented May 18, 2019

I have tested this item ✅ successfully on 6e6290a


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

1 similar comment
@viocassel
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 6e6290a


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

@Quy
Copy link
Copy Markdown
Contributor

Quy commented May 18, 2019

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 18, 2019
@HLeithner HLeithner merged commit f7dd5eb into joomla:staging May 20, 2019
@HLeithner
Copy link
Copy Markdown
Member

thx

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 20, 2019
@HLeithner HLeithner added this to the Joomla 3.9.7 milestone May 20, 2019
@okonomiyaki3000 okonomiyaki3000 deleted the fix-subform-subform branch May 20, 2019 23:49
tecpromotion pushed a commit to tecpromotion/joomla-cms that referenced this pull request May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants