? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
18 Dec 2020

Pull Request for Issue #30956 .

Summary of Changes

Fixes logic when the table has no error queued up because nothing went wrong - there's just no entry and adds an additional string to reflect that case.

Testing Instructions

Force a mail template url that doesn't exist JROOT/administrator/index.php?option=com_mails&view=template&layout=edit&template_id=NOSUCH&language=en-GB

Actual result BEFORE applying this Pull Request

Screenshot 2020-10-07 at 00 20 51

Expected result AFTER applying this Pull Request

Screenshot 2020-12-18 at 13 29 23

Documentation Changes Required

None

avatar wilsonge wilsonge - open - 18 Dec 2020
avatar wilsonge wilsonge - change - 18 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Dec 2020
Category Administration Language & Strings
avatar wilsonge wilsonge - change - 18 Dec 2020
The description was changed
avatar wilsonge wilsonge - edited - 18 Dec 2020
avatar brianteeman
brianteeman - comment - 18 Dec 2020

In your screenshot it shows the error twice?

avatar wilsonge
wilsonge - comment - 18 Dec 2020

It does. Strictly this is because we load the item then we load the form (which internally loads the item to bind the data). I’m not sure of a good fix other than something like only loading the form if the item loads successfully. That is also noted in the text above the screenshot ;)

avatar wilsonge wilsonge - change - 18 Dec 2020
Title
Fix mail template not found error
[4.0] Fix mail template not found error
avatar wilsonge wilsonge - edited - 18 Dec 2020
avatar brianteeman
brianteeman - comment - 18 Dec 2020

Sorry - wrote my comment before coffee. Sure someone will report it as a bug eventually

avatar wilsonge wilsonge - change - 18 Dec 2020
Labels Added: ? ?
avatar wilsonge wilsonge - change - 18 Dec 2020
The description was changed
avatar wilsonge wilsonge - edited - 18 Dec 2020
avatar wilsonge
wilsonge - comment - 18 Dec 2020

Refactored. I tested again this morning and realised I couldn't create a mail template after this change - I guess that's what comes of testing things at 5am :) This now has a single error message and is more consistent with other components

avatar chmst
chmst - comment - 26 Dec 2020

I have tested this item āœ… successfully on 2f381ef


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

avatar chmst chmst - test_item - 26 Dec 2020 - Tested successfully
avatar gostn
gostn - comment - 26 Dec 2020

I have tested this item āœ… successfully on 2f381ef


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

avatar gostn gostn - test_item - 26 Dec 2020 - Tested successfully
avatar wilsonge wilsonge - change - 27 Dec 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-27 01:05:26
Closed_By wilsonge
avatar wilsonge wilsonge - close - 27 Dec 2020
avatar wilsonge wilsonge - merge - 27 Dec 2020
avatar wilsonge
wilsonge - comment - 27 Dec 2020

Thanks guys!

Add a Comment

Login with GitHub to post a comment