Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move a subform template out of the form scope, for IE compatibility #24947

Merged
merged 3 commits into from
Jun 5, 2019

Conversation

Fedik
Copy link
Member

@Fedik Fedik commented May 18, 2019

Pull Request for Issue #24832 for Joomla 3.x version
Same as #24944 but for staging.

Summary of Changes

This fix the subform field in IE, when one of subfield are required.

Testing Instructions

Please look for related issue for details.

@Quy
Copy link
Contributor

Quy commented May 18, 2019

I have tested this item ✅ successfully on ab3b0a4


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

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on ab3b0a4


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

@Quy
Copy link
Contributor

Quy commented May 18, 2019

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 18, 2019
@SharkyKZ
Copy link
Contributor

@Fedik fix conflicts please.

@okonomiyaki3000
Copy link
Contributor

The only conflict is in the minified version of the js file. It shouldn't be necessary to have the author of the patch fix that. Ideally the minified file shouldn't even be committed in the first place.

 Conflicts:
	media/system/js/subform-repeatable.js
@Fedik
Copy link
Member Author

Fedik commented May 22, 2019

fixed

@brianteeman
Copy link
Contributor

@okonomiyaki3000 This is for Joomla 3 and we dont have anything setup to minify files for 3 - only j4

okonomiyaki3000 referenced this pull request May 23, 2019
* This is a combination of 8 commits.
This is the 1st commit message:

> First WIP version of supporting nested subforms.

This is the commit message #2:

> Fix nested subforms not getting correct name attribute on input fields.

This is the commit message #3:

> Fix subform rows having invalid index, fix small typo.

This is the commit message #4:

> Replace the unique subform id via random bytes by just an increasing integer in the fields type rendering process.

This is the commit message #5:

> Implement feedback from PR at Joomla;
> - Use a <template> HTML element for the template of the subform rows,
>   not a url encoded string inside of a <script> element.
> - Fix code style errors reported by phpcs.
> - Make the fixing of the unique attributes (name, id, etc) of input elements
>   of nested subform rows more errorprone, using the same method as the main
>   subform row.
> - Manually add a minified version of the javascript file.

This is the commit message #6:

> Fix failing javascript tests due to changed structure of subform repeatable template container.

This is the commit message #7:

> Change subform repeatable javascript test to correctly check on
> 0-indexed rows, previously they have been 1-indexed.

This is the commit message #8:

> Fix a problem where multi-level subforms on the same level doesnt trigger their template correctly.
> Additionally added a note why the fixScripts() method is broken and how it could get better.

* Commit code styling errors and add an aria label for the outermost 'add' button.

* Fix double group-add button on repeatable subform type.
@HLeithner
Copy link
Member

@Fedik I'm sorry, could you please resolve the conflict again?

@ghost ghost changed the title Move a subform template out of the form scope, for IE compatibility. Move a subform template out of the form scope, for IE compatibility Jun 5, 2019
 Conflicts:
	media/system/js/subform-repeatable.js
@Fedik
Copy link
Member Author

Fedik commented Jun 5, 2019

fixed

@HLeithner
Copy link
Member

thx

@HLeithner HLeithner merged commit 6a4c879 into joomla:staging Jun 5, 2019
@HLeithner HLeithner added this to the Joomla 3.9.7 milestone Jun 5, 2019
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jun 5, 2019
@Fedik Fedik deleted the subform-ie-fix-j3 branch June 5, 2019 19:12
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.

8 participants