? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
12 Feb 2018

Currently, batch operations will generate PHP notices if the 3rd party model doesn't specify the typeAlias property for some reason.
This is because \Joomla\CMS\MVC\Model\AdminModel doesn't define the property itself.

Summary of Changes

This PR adds the property definition to the class

Testing Instructions

Test that batch operations still work.
Since core to my knowledge isn't affected, nothing should change here.
To test the appearance of the notices, you can try with my component ( (eg https://www.sermonspeaker.net/download/sermonspeaker-component/sermonspeaker-component-5-7-1.html)).

Expected result

No notice

Actual result

Notices with some 3rd party.

Documentation Changes Required

None

avatar Bakual Bakual - open - 12 Feb 2018
avatar Bakual Bakual - change - 12 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Feb 2018
Category Libraries
avatar Quy
Quy - comment - 12 Feb 2018

I have tested this item successfully on 1ec427b


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

avatar Quy Quy - test_item - 12 Feb 2018 - Tested successfully
avatar Anu1601CS
Anu1601CS - comment - 13 Feb 2018

I have tested this item successfully on 1ec427b


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

avatar Anu1601CS Anu1601CS - test_item - 13 Feb 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Feb 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Feb 2018

Ready to Commit after two successful tests.

avatar Quy
Quy - comment - 18 Feb 2018

I tested with OSMeta Free plugin and got the notice: https://www.joomlashack.com/joomla-extensions/osmeta/

Notice: Undefined property: PluginsModelPlugin::$typeAlias in \libraries\src\MVC\Model\AdminModel.php on line 1520

avatar Bakual
Bakual - comment - 18 Feb 2018

@wilsonge The version of my SermonSpeaker component does show the message as well. It happens if the child model doesn't specify the typeAlias as a property.

avatar mbabker mbabker - change - 26 Feb 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-02-26 03:17:00
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 26 Feb 2018
avatar mbabker mbabker - merge - 26 Feb 2018

Add a Comment

Login with GitHub to post a comment