? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
15 Apr 2017

Pull Request for Issue # .

Summary of Changes

The current MVC factory implement completely ignore $prefix parameter. That result the code in backend cannot create MVC objects from frontend and vice versa. There are also several small clean up:

  1. Force table class to use Administrator namespace unless Site is directly passed
  2. Use correct CmsApplication class instead of it's alias JApplicationCms

Testing Instructions

Maybe code review would be enough. Or install Joomla 4 nightly, apply patch, play with com_content and make sure it still works as expected

avatar joomdonation joomdonation - open - 15 Apr 2017
avatar joomdonation joomdonation - change - 15 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Apr 2017
Category Libraries
avatar rjcf18 rjcf18 - test_item - 15 Apr 2017 - Tested successfully
avatar rjcf18
rjcf18 - comment - 15 Apr 2017

I have tested this item successfully on 586c7b5

I've navigated through the views at com_content added, edited, published, unpublished, archived, trashed and checked in several articles and categories, also featured and unfeatured several articles and there seems to be no problem, everything seems to be working fine.


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

avatar joomdonation joomdonation - change - 15 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2017
Category Libraries Administration com_content Libraries
avatar joomdonation
joomdonation - comment - 16 Apr 2017

OK. I added some code to clean up methods parameters (makes it consistent with LegacyFactory), correct the order of the code to get Table + apply the fixes for com_content. Should be good to go now.

avatar wilsonge
wilsonge - comment - 16 Apr 2017

Looking better :) One last comment

avatar wilsonge wilsonge - change - 16 Apr 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-16 15:40:13
Closed_By wilsonge
avatar wilsonge wilsonge - close - 16 Apr 2017
avatar wilsonge wilsonge - merge - 16 Apr 2017
avatar wilsonge
wilsonge - comment - 16 Apr 2017

Looks good to me :)

avatar joomdonation
joomdonation - comment - 16 Apr 2017

Thanks :)

avatar wilsonge
wilsonge - comment - 16 Apr 2017

I've had to revert part of this because finding a view was totally broken in com_content :( 339cec8

avatar joomdonation
joomdonation - comment - 16 Apr 2017

Sorry. I didn't test the last minute Typo fix and didn't see this error. Figured out the reason of the error. There is a big in getName() method of Controller class and it causes this issue

It is corrected in my other PR #15301 , so please look at that PR when you have time

avatar joomdonation
joomdonation - comment - 16 Apr 2017

Actually, more than just that. View prefix is total difference with other type of MVC objects. Will need to think more about it to find a solution

avatar joomdonation
joomdonation - comment - 17 Apr 2017

The problem happens with both View and Model, I propose an ugly fix #15339 which fixes this issue.

Add a Comment

Login with GitHub to post a comment