? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
19 May 2020

Summary of Changes

The return values of after delete events are not used. Unless they should be, this changes them to be void.

Testing Instructions

Code review or try deleting some stuff. Should work like before.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 19 May 2020
avatar SharkyKZ SharkyKZ - change - 19 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2020
Category Front End Plugins
avatar SharkyKZ SharkyKZ - change - 19 May 2020
Labels Added: ?
avatar HLeithner
HLeithner - comment - 19 May 2020

Changing this behavior is a b/c break and have to be deprecated or at least documented.

Also removing a provided true and false in case of an error seams to be wrong.

avatar SharkyKZ
SharkyKZ - comment - 19 May 2020

It is already documented as void. E.g. https://docs.joomla.org/Special:MyLanguage/Plugin/Events/Content#onContentAfterDelete

Also removing a provided true and false in case of an error seams to be wrong.

We don't use these values in core, i.e. returning false does nothing, unlike with BeforeDelete events. And 3PDs can't rely on these values as well because we don't return them consistently. If you see a use for boolean values here, we could switch to booleans instead. But then we still could not rely on them until 3PDs consistently start returning booleans as well.

avatar HLeithner
HLeithner - comment - 19 May 2020

Ok didn't checked the docu so seams to make sense to remove it.

avatar Quy Quy - test_item - 19 May 2020 - Tested successfully
avatar Quy
Quy - comment - 19 May 2020

I have tested this item successfully on b1db89a


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

avatar wilsonge wilsonge - change - 21 May 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-21 22:35:18
Closed_By wilsonge
avatar wilsonge wilsonge - close - 21 May 2020
avatar wilsonge wilsonge - merge - 21 May 2020
avatar wilsonge
wilsonge - comment - 21 May 2020

Thanks!

Add a Comment

Login with GitHub to post a comment