NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
14 Jun 2021

Pull Request for Issue #34510.

Summary of Changes

This PR fixes few js error for com_joomlaupdate. See #34510 for more details. It also fixes an error in the console when the page is loaded (You need to install a third party extension like JCE to see this error - or code review)

Testing Instructions

  1. See #34510 to understand the issue
  2. Download update package for this PR, go to System -> Update -> Joomla to install the update package for this PR (or apply patch, and run npm command, sorry I don't remember the command to run)
  3. Check and confirm the issue is gone.
avatar joomdonation joomdonation - open - 14 Jun 2021
avatar joomdonation joomdonation - change - 14 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2021
Category JavaScript Repository NPM Change
avatar richard67
richard67 - comment - 14 Jun 2021

@joomdonation It fixes the error in my issue, but regarding the console error there is still Uncaught TypeError: document.getElementById(...) is null here: https://github.com/joomla/joomla-cms/pull/34516/files#diff-550b2e9757e1fef80e3714191e4f70f3dd9bd7441ff3e7679698de031551e346R420

avatar joomdonation
joomdonation - comment - 14 Jun 2021

@richard67 I don't see the issue myself for some reasons. Maybe it's because I have some third party extension installed (JCE, and my own extensions). But I saw that error before and the modification in that line of code fixes that. The # character is needed for old code (jQuery) but not needed on document.getElementById

avatar richard67
richard67 - comment - 14 Jun 2021

@richard67 I don't see the issue myself for some reasons. Maybe it's because I have some third party extension installed (JCE, and my own extensions). But I saw that error before and the modification in that line of code fixes that. The # character is needed for old code (jQuery) but not needed on document.getElementById

@joomdonation No need to explain me the "#" change, I understand that already.

avatar joomdonation
joomdonation - comment - 14 Jun 2021

No need to explain me the "#" change, I understand that already.

Sorry, I just tried to explain the reason for the change on that line of code.

avatar richard67
richard67 - comment - 14 Jun 2021

@joomdonation Yes but unfortunately it still doesn't work. Seems there is something more wrong with that element id.

avatar richard67
richard67 - comment - 14 Jun 2021

I can't see any html element having an id "plg_226", which is the one for which the document.getElementById call fails. 226 is the id of the JCE extension in my installation.

avatar joomdonation
joomdonation - comment - 14 Jun 2021

Somehow, it relates to logic of com_joomlaupdate which I don't understand yet. The element is only available if the layout administrator/components/com_joomlaupdate/tmpl/joomlaupdate/default_update.php is loaded , but in this case, it is not loaded for some reasons (maybe it is because no update found for that extension, will need to look more at com_joomlaupdate to understand)

avatar richard67
richard67 - comment - 15 Jun 2021

@joomdonation One solution could be that you revert that one change which is not related to the issue and which does not work for me, so the other change can be tested before RC 2 is made tonight, and for the remaining js error make a new issue.

avatar joomdonation joomdonation - change - 15 Jun 2021
Labels Added: NPM Resource Changed ?
avatar joomdonation
joomdonation - comment - 15 Jun 2021

@richard67 OK. We will handle that change on a separate PR.

avatar richard67 richard67 - test_item - 15 Jun 2021 - Tested successfully
avatar richard67
richard67 - comment - 15 Jun 2021

I have tested this item successfully on 8f8f971

Fixes #34510 .


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

avatar wilsonge wilsonge - change - 15 Jun 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-06-15 07:44:10
Closed_By wilsonge
avatar wilsonge wilsonge - close - 15 Jun 2021
avatar wilsonge wilsonge - merge - 15 Jun 2021
avatar wilsonge
wilsonge - comment - 15 Jun 2021

Thanks!

Add a Comment

Login with GitHub to post a comment