J3 Issue ?
avatar xortrike
xortrike
8 Sep 2019

Steps to reproduce the issue

In component controller.

class ExampleController extends JControllerLegacy {
    public function display($cachable = false, $urlparams = array()) {
        $this->getView();
}

Expected result

Class \JViewLegacy

Actual result

Redirect to dashboard.

System information (as much as possible)

Method creating view. /libraries/src/MVC/Controller/BaseController.php:821
Argument $type is optional, but if not transfer to method - will result in an error.

Additional comments

I testing on Joomla 3.9.11

avatar xortrike xortrike - open - 8 Sep 2019
avatar joomla-cms-bot joomla-cms-bot - change - 8 Sep 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Sep 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 8 Sep 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Sep 2019

@alikon can you please comment?

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Sep 2019
Status New Information Required
avatar SharkyKZ
SharkyKZ - comment - 9 Sep 2019

Argument $type is optional, but if not transfer to method - will result in an error.

That's not entirely true. If type is not set the controller looks for view.php file.

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Sep 2019
Status Information Required Discussion
avatar alikon
alikon - comment - 4 Dec 2019

@SharkyKZ can we close this as expected behaviour or ?

avatar SharkyKZ
SharkyKZ - comment - 4 Dec 2019

I'm not sure if that answered @xortrike's question. Awaiting response.

avatar joomla-cms-bot joomla-cms-bot - close - 22 Dec 2019
avatar alikon alikon - change - 22 Dec 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-12-22 10:46:18
Closed_By alikon
avatar joomla-cms-bot joomla-cms-bot - change - 22 Dec 2019
Closed_By alikon joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Dec 2019

Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/26218

avatar alikon
alikon - comment - 22 Dec 2019

since no response i'm closing
it can always be re-opened if needed


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

Add a Comment

Login with GitHub to post a comment