Skip to content

Make user field initialize itself when a new subform row is added#20231

Merged
HLeithner merged 1 commit intojoomla:stagingfrom
okonomiyaki3000:fix-subform-user
May 29, 2019
Merged

Make user field initialize itself when a new subform row is added#20231
HLeithner merged 1 commit intojoomla:stagingfrom
okonomiyaki3000:fix-subform-user

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. the user field type already works with repeatable subforms. This just does it in a somewhat better way.

Testing Instructions

Set up a subform containing a user field. 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 user field in each new row should function properly.

Expected result

User field functions normally.

Actual result

User field functions normally.

Documentation Changes Required

None

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Apr 26, 2018

I have tested this item ✅ successfully on f2999be


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

@okonomiyaki3000
Copy link
Copy Markdown
Contributor Author

See also #24919

@Quy
Copy link
Copy Markdown
Contributor

Quy commented May 18, 2019

I have tested this item ✅ successfully on 157e33d


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

@HLeithner
Copy link
Copy Markdown
Member

@okonomiyaki3000 could you please solve the conflicts?

@HLeithner HLeithner merged commit 37d3df8 into joomla:staging May 29, 2019
@HLeithner HLeithner added this to the Joomla 3.9.7 milestone May 29, 2019
@okonomiyaki3000 okonomiyaki3000 deleted the fix-subform-user branch May 30, 2019 00:41
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.

5 participants