Skip to content

[4.0] adding additional check to avoid js script error#30593

Merged
wilsonge merged 2 commits intojoomla:4.0-devfrom
pdkpavankumar:image-rotation-js-error
Sep 11, 2020
Merged

[4.0] adding additional check to avoid js script error#30593
wilsonge merged 2 commits intojoomla:4.0-devfrom
pdkpavankumar:image-rotation-js-error

Conversation

@pdkpavankumar
Copy link
Contributor

Pull Request for Issue # . #29157

Summary of Changes

added additional check in js file to avoid script error

Testing Instructions

  1. Go to edit an image in the Media Manager
  2. Click the Rotate tab
  3. Click the buttons 0, 90, 180, 270 to rotate the image

Actual result BEFORE applying this Pull Request

TypeError: c.querySelector(...) is null -- rotate.min.js:1:1416

Expected result AFTER applying this Pull Request

No script error should come and functionality should work as is.

Documentation Changes Required

NO

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.0-dev labels Sep 8, 2020
@Quy
Copy link
Contributor

Quy commented Sep 8, 2020

I have tested this item ✅ successfully on 6e8dd5c


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

@pdkpavankumar pdkpavankumar changed the title adding additional check to avoid js script error [4.0] adding additional check to avoid js script error Sep 10, 2020
@wilsonge wilsonge merged commit df3cd40 into joomla:4.0-dev Sep 11, 2020
@wilsonge
Copy link
Contributor

Thanks!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Sep 11, 2020
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
* adding additional check to avoid js script error

* fixing js lint error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NPM Resource Changed This Pull Request can't be tested by Patchtester

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants