? Success

User tests: Successful: Unsuccessful:

avatar izharaazmi
izharaazmi
2 Jun 2015

Post delete hook called with $model not defined in context. Without calling delete method at all, the call to this hook is also pointless.

avatar izharaazmi izharaazmi - open - 2 Jun 2015
avatar zero-24 zero-24 - change - 2 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 2 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 2 Jun 2015
Status New Pending
avatar zero-24 zero-24 - change - 2 Jun 2015
Category Libraries
avatar Bakual
Bakual - comment - 2 Jun 2015

Agree with the change as it indeed makes no sense.
To test make sure deleting any items still works with this change. It's probably used in almost all extensions.

avatar jwaisner
jwaisner - comment - 3 Jun 2015

@test

With PR applied items (articles, categories, users, usergroups, extensions, ect) delete successfully with no errors.


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

avatar jwaisner jwaisner - test_item - 3 Jun 2015 - Tested successfully
avatar izharaazmi
izharaazmi - comment - 3 Jun 2015

Please note that without this change, the undefined variable $model fatal error can be observed when cid[] parameter is not passed, i.e. when no items are selected for deletion.

This makes the test condition if (!is_array($cid) || count($cid) < 1) to pass and hence $model is never defined.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Jun 2015

@test Delete User, Usergroup, Note, Note Categorie, Menu, Menu Item, Article, Category, Item, Folder in Media Manager, Banner (+Category, Client) Contact, Contact Category, Tag, Module (Site, Admin), Plugin, Template, Language with no errors.

avatar Bakual Bakual - change - 3 Jun 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-06-03 06:11:34
Closed_By Bakual
avatar Bakual Bakual - close - 3 Jun 2015
avatar Bakual Bakual - close - 3 Jun 2015
avatar zero-24 zero-24 - close - 3 Jun 2015
avatar Bakual
Bakual - comment - 3 Jun 2015

Thanks all!

avatar Bakual Bakual - change - 3 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment