? ? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
15 Jul 2020

Pull Request for Issue #29562.

Summary of Changes

Check message exists and compare user_id to ensure there is a message sent to the user to reply to.
Add space before subject in reply.

Testing Instructions

Fake a reply_id:
/administrator/index.php?option=com_messages&view=message&layout=edit&reply_id=666999666

Actual result BEFORE applying this Pull Request

Enable Maximum in Error Reporting.
Check PHP error log.

PHP Notice: Trying to get property 'user_id_from' of non-object in \administrator\components\com_messages\models\message.php on line 158
PHP Notice: Trying to get property 'subject' of non-object in \administrator\components\com_messages\models\message.php on line 161
PHP Notice: Trying to get property 'subject' of non-object in \administrator\components\com_messages\models\message.php on line 163

Expected result AFTER applying this Pull Request

An error message
500 You are not authorised to view this resource. 
avatar Quy Quy - open - 15 Jul 2020
avatar Quy Quy - change - 15 Jul 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jul 2020
Category Administration com_messages
avatar Quy Quy - change - 15 Jul 2020
The description was changed
avatar Quy Quy - edited - 15 Jul 2020
avatar chmst chmst - test_item - 15 Jul 2020 - Tested successfully
avatar chmst
chmst - comment - 15 Jul 2020

I have tested this item successfully on 51403e4


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

avatar chmst
chmst - comment - 15 Jul 2020

Same notice in J4.


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

avatar jwaisner jwaisner - test_item - 15 Jul 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 15 Jul 2020

I have tested this item successfully on 51403e4


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

avatar jwaisner jwaisner - change - 15 Jul 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 15 Jul 2020

RTC


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

avatar HLeithner HLeithner - change - 17 Aug 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-08-17 10:41:05
Closed_By HLeithner
Labels Added: ? ?
avatar HLeithner HLeithner - close - 17 Aug 2020
avatar HLeithner HLeithner - merge - 17 Aug 2020
avatar HLeithner
HLeithner - comment - 17 Aug 2020

Thanks

Add a Comment

Login with GitHub to post a comment