? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
20 May 2021

Summary of Changes

Not a typo. 70 changed files with 128 additions and 124 deletions.

Not a simple search and replace of everything.

parent::display() in most extensions HtmlView.php files calls \Joomla\CMS\MVC\View::display() as parent::display() which finally echo's a $result.

An echo is not a return, so the second parent::display() returns void to the first, which then doesnt return anything (correctly returns void already) back to the HTMLView and so its plainly wrong to again then return the non-existing void back up the call stack.

Therefore return parent::display($tpl) is simply wrong, proved by removing the return in this PR.

This PR then updates the docblocks correctly.

THERE ARE A COUPLE OF GOTCHAS, this is not a simple search and replace.

Testing Instructions

Code review

Apply PR - Joomla still works.

note...

This is different to the use of return parent::display(); in Controllers which is correct, as that is returning an instance of BaseController to provide a fluid interface for chaining methods. Whereas this is not the case in the views.

avatar PhilETaylor PhilETaylor - open - 20 May 2021
avatar PhilETaylor PhilETaylor - change - 20 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2021
Category Administration com_cache com_categories com_checkin com_config com_contact com_content com_contenthistory com_cpanel com_fields com_finder com_languages com_media com_messages
avatar PhilETaylor PhilETaylor - change - 20 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 20 May 2021
avatar PhilETaylor PhilETaylor - change - 20 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 20 May 2021
avatar PhilETaylor PhilETaylor - change - 20 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 20 May 2021
avatar rdeutz rdeutz - change - 21 May 2021
Title
[4] Not a typo. Correctly return from display method, correct the doc for that too - manually.
[4] Correctly return from display method, correct the doc for that too - manually.
avatar rdeutz rdeutz - edited - 21 May 2021
avatar PhilETaylor PhilETaylor - change - 22 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2021
Category Administration com_cache com_categories com_checkin com_config com_contact com_content com_contenthistory com_cpanel com_fields com_finder com_languages com_media com_messages Administration com_cache com_categories com_checkin com_config com_contact com_content com_contenthistory com_cpanel com_fields com_finder
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2021
Category Administration com_cache com_categories com_checkin com_config com_contact com_content com_contenthistory com_cpanel com_fields com_finder Administration com_cache com_categories com_checkin com_config com_contact com_content com_contenthistory com_cpanel com_fields com_finder com_languages com_media com_messages
avatar PhilETaylor
PhilETaylor - comment - 22 May 2021

rebased after @brianteeman preparedocument PR to fix my conflicts.

avatar wilsonge wilsonge - change - 5 Jul 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-07-05 15:23:10
Closed_By wilsonge
avatar wilsonge wilsonge - close - 5 Jul 2021
avatar wilsonge wilsonge - merge - 5 Jul 2021
avatar wilsonge
wilsonge - comment - 5 Jul 2021

This will do as a starting point. The exception handling is much more tricky and a bigger piece of work - think this is good enough standalone.

Add a Comment

Login with GitHub to post a comment