? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
7 Feb 2020

Pull Request for Issue #27846.

Summary of Changes

Resize modal markup outputs for all file types where height/width values were null for non-image types. This PR restricts markup to image type only.

Affected on PHP 7.4+

Testing Instructions

Go to System > Site Templates
Click Cassiopeia Details and Files
Edit a file that is not an image.
View page source
Find id="resizeModal"
See errors in PHP log
Apply PR
View page source
Find id="resizeModal" but not found
No errors in PHP log

Actual result

PHP Notice: Trying to access array offset on value of type null in \administrator\components\com_templates\tmpl\template\default_modal_resize_body.php on line 25

PHP Notice: Trying to access array offset on value of type null in\administrator\components\com_templates\tmpl\template\default_modal_resize_body.php on line 35

avatar Quy Quy - open - 7 Feb 2020
avatar Quy Quy - change - 7 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Feb 2020
Category Administration com_templates
avatar Quy Quy - change - 7 Feb 2020
The description was changed
avatar Quy Quy - edited - 7 Feb 2020
avatar Quy Quy - change - 7 Feb 2020
The description was changed
avatar Quy Quy - edited - 7 Feb 2020
avatar Quy Quy - change - 7 Feb 2020
The description was changed
avatar Quy Quy - edited - 7 Feb 2020
avatar richard67 richard67 - test_item - 8 Feb 2020 - Tested successfully
avatar richard67
richard67 - comment - 8 Feb 2020

I have tested this item successfully on 18af308

Tested on PHP 7.4.2.

Markup id="resizeModal" is only shown for images, and PHP warning for non-images has gone.


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

avatar jwaisner jwaisner - test_item - 8 Feb 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 8 Feb 2020

I have tested this item successfully on 18af308


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

avatar jwaisner jwaisner - change - 8 Feb 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 8 Feb 2020

RTC


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

avatar Quy Quy - change - 8 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-08 19:08:47
Closed_By Quy
Labels Added: ?
avatar Quy Quy - close - 8 Feb 2020
avatar Quy Quy - merge - 8 Feb 2020

Add a Comment

Login with GitHub to post a comment