NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
20 Aug 2020

Summary of Changes

Joomla 3 components do not have the new orderedBy element in the back end lists. If this element is not available then a Javascript error happens:

Uncaught TypeError: document.getElementById(...) is null
onBoot /media/system/js/searchtools.js:540
EventListener.handleEvent* /media/system/js/searchtools.js:553
<anonymous> /media/system/js/searchtools.js:554

This pr stabilizes by adding a check if the element exists.

Testing Instructions

  • Remove the lines 110 - 114 in the file /administrator/components/com_content/tmpl/articles/default.php
  • Go to /administrator/index.php?option=com_content&view=articles

Actual result BEFORE applying this Pull Request

Error happens as described above.

Expected result AFTER applying this Pull Request

No JS error.

Documentation Changes Required

Nothing as the new orderedby element is not required anymore. When the pr is not accepted, then the docs need an update of the new required element.

avatar laoneo laoneo - open - 20 Aug 2020
avatar laoneo laoneo - change - 20 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2020
Category JavaScript Repository NPM Change
avatar Quy Quy - test_item - 20 Aug 2020 - Tested successfully
avatar Quy
Quy - comment - 20 Aug 2020

I have tested this item successfully on 00ba9a8


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

avatar richard67 richard67 - test_item - 21 Aug 2020 - Tested successfully
avatar richard67
richard67 - comment - 21 Aug 2020

I have tested this item successfully on 00ba9a8


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

avatar richard67 richard67 - change - 21 Aug 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 21 Aug 2020

RTC


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

avatar richard67 richard67 - change - 21 Aug 2020
Labels Added: ? ? NPM Resource Changed
avatar laoneo laoneo - change - 27 Aug 2020
Labels Added: ?
avatar laoneo
laoneo - comment - 28 Aug 2020

@wilsonge added a variable

avatar zero-24 zero-24 - change - 31 Aug 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-08-31 15:29:34
Closed_By zero-24
Labels Removed: ?
avatar zero-24 zero-24 - close - 31 Aug 2020
avatar zero-24 zero-24 - merge - 31 Aug 2020
avatar zero-24
zero-24 - comment - 31 Aug 2020

Merging thanks!

Add a Comment

Login with GitHub to post a comment