? NPM Resource Changed PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
29 Mar 2023

Summary of Changes

As result of #39350 it become impossible to use validation over non <form> element.
Hovewer some extensions use this feature to validate form "per section".

Testing Instructions

Apply patch. Run npm install
Open a form for "New article".
In Browser console, run 2 commands (one by one):

document.formvalidator.isValid(window['item-form']);

document.formvalidator.isValid(window['item-form'].parentElement);

Actual result BEFORE applying this Pull Request

First command executed, and you get a validation message.
Second command throws an error

Expected result AFTER applying this Pull Request

Both commands works, and shows validation message

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar joomla-cms-bot joomla-cms-bot - change - 29 Mar 2023
Category JavaScript Repository NPM Change
avatar Fedik Fedik - open - 29 Mar 2023
avatar Fedik Fedik - change - 29 Mar 2023
Status New Pending
avatar viocassel viocassel - test_item - 29 Mar 2023 - Tested successfully
avatar viocassel
viocassel - comment - 29 Mar 2023

I have tested this item successfully on 819f565


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

avatar obuisard obuisard - test_item - 30 Mar 2023 - Tested successfully
avatar obuisard
obuisard - comment - 30 Mar 2023

I have tested this item successfully on 819f565


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

avatar Quy Quy - change - 30 Mar 2023
Status Pending Ready to Commit
Labels Added: PR-4.3-dev
avatar Quy
Quy - comment - 30 Mar 2023

RTC


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

avatar Quy Quy - change - 30 Mar 2023
Labels Added: ?
avatar obuisard obuisard - change - 30 Mar 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-03-30 19:00:09
Closed_By obuisard
Labels Added: NPM Resource Changed
avatar obuisard obuisard - close - 30 Mar 2023
avatar obuisard obuisard - merge - 30 Mar 2023
avatar obuisard
obuisard - comment - 30 Mar 2023

Thank you Fedir @Fedik for the fix

avatar compojoom
compojoom - comment - 2 Apr 2023

thanks for the fix @Fedik ! Will there be a 4.2.10 release with this fix?

avatar obuisard
obuisard - comment - 2 Apr 2023

thanks for the fix @Fedik ! Will there be a 4.2.10 release with this fix?

No, you will have to wait for 4.3, coming April, 18 :-)

Add a Comment

Login with GitHub to post a comment