? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
7 Aug 2020

Summary of Changes

When an extension has no filter form file then the list view throws an Exception, which should not be the case as the form name is guessed only. This pr catches that exception and executes normally. Additionally I made the code a bit easier to read :-)

This issue can't be reproduced with core as I have it on one of my extensions. So merge by review @wilsonge.

Testing Instructions

None with core possible without hacking to man files.

Actual result BEFORE applying this Pull Request

No error is thrown when no filter form file is available.

Expected result AFTER applying this Pull Request

Page loads.

avatar laoneo laoneo - open - 7 Aug 2020
avatar laoneo laoneo - change - 7 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2020
Category Libraries
avatar laoneo laoneo - change - 7 Aug 2020
The description was changed
avatar laoneo laoneo - edited - 7 Aug 2020
avatar laoneo laoneo - change - 7 Aug 2020
The description was changed
avatar laoneo laoneo - edited - 7 Aug 2020
avatar richard67 richard67 - test_item - 7 Aug 2020 - Tested successfully
avatar richard67
richard67 - comment - 7 Aug 2020

I have tested this item successfully on 583fd4c

Code review.


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

avatar richard67
richard67 - comment - 7 Aug 2020

@laoneo Maybe add at least "Code review" to the testing instructions? Would be not bad to have a 2nd reviewer.

avatar Quy
Quy - comment - 11 Aug 2020

Renamed \administrator\components\com_content\forms\filter_articles.xml

Before PR:

0 Form::loadForm could not load file

After PR:

0 Call to a member function removeField() on null

Is this the expected behavior?

avatar laoneo
laoneo - comment - 11 Aug 2020

Yes, because it expects a filter form. What you can do is to remove the code in the view which loads the filter bar.

avatar Quy Quy - test_item - 11 Aug 2020 - Tested successfully
avatar Quy
Quy - comment - 11 Aug 2020

I have tested this item successfully on 583fd4c


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

avatar Quy Quy - change - 11 Aug 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 11 Aug 2020

RTC


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

avatar zero-24 zero-24 - close - 31 Aug 2020
avatar zero-24 zero-24 - merge - 31 Aug 2020
avatar zero-24 zero-24 - change - 31 Aug 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-08-31 15:37:22
Closed_By zero-24
Labels Added: ? ?
avatar zero-24
zero-24 - comment - 31 Aug 2020

Merging thanks

Add a Comment

Login with GitHub to post a comment