? Pending

User tests: Successful: Unsuccessful:

avatar asika32764
asika32764
16 Feb 2017

Joomla3.7beta use JLoader instead directly require file in JFormHelper, but this will break all FormField file named list.php or same with existing core fields name.

For example, a field named JFormFieldFoo_List in /models/fields/foo/list.php will override the JFormFieldList class, so JFormHelper::loadFieldClass('list') will load JFormFieldFoo_List not JFormFieldList.

This will break many components.

See lyrasoft/quickicons#45

Summary of Changes

Back to use require_once in JFormHelper

Testing Instructions

Create a field in models/fields/foo/list.php named JFormFieldFoo_List and include it in xml file, then try to load JFormHelper::loadFieldClass('list'); in other fields file, Joomla will not able to load JFormFieldList

Expected result

Should load JFormFieldList

Actual result

JFormFieldList class not definded.

avatar asika32764 asika32764 - open - 16 Feb 2017
avatar asika32764 asika32764 - change - 16 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2017
Category Libraries
avatar asika32764 asika32764 - change - 16 Feb 2017
The description was changed
avatar asika32764 asika32764 - edited - 16 Feb 2017
avatar Bakual
Bakual - comment - 16 Feb 2017

As reference, this has been changed to use JLoader with #12060
Pinging @mbabker as it was his PR that introduced this.

avatar mbabker
mbabker - comment - 16 Feb 2017

Just merge it. It's going to be easier to go backward on autoloading attempts than ever actually use it the way some of the APIs still work.

avatar Bakual
Bakual - comment - 16 Feb 2017

Merging then based on review since it's a simple revert.

avatar Bakual Bakual - change - 16 Feb 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-16 13:21:43
Closed_By Bakual
Labels Added: ?
avatar Bakual Bakual - close - 16 Feb 2017
avatar Bakual Bakual - merge - 16 Feb 2017

Add a Comment

Login with GitHub to post a comment