Skip to content

[4.0] Legacy View not working - no data from model #23517

@PhocaCz

Description

@PhocaCz

Steps to reproduce the issue

When you open some view in administration which is based on JViewLegacy (external component views), it does not load data from model

Expected result

Data from model are loaded.

Actual result

Joomla! 4.0.0-alpha6 - everything works as expected.
Joomla! 4.0.0-alpha7-dev - data are not loaded.

You can test it with some external component view or build your own:

jimport( 'joomla.application.component.view' );

class SomeView extends JViewLegacy
{
	protected $state;

	function display($tpl = null) {

		$this->state		= $this->get('State');
		dump($this->state);
	}
}

produces in Alpha6
OK

but in Alpha7 (latest build created by composer/npm):
OK

Data from model are not loaded at all

System information (as much as possible)

Joomla! 4.0.0-alpha6 - works OK ✔️
Joomla! 4.0.0-alpha7-dev (latest build created by composer/npm) - data are not loaded. 🔴

Joomla! Version 4.0.0-alpha7-dev
PHP Version 7.2.4
Identity user
Response 200
Template atum
Database ServermysqlVersion5.5.5-10.2.6-MariaDBCollationutf8mb4_unicode_ciConn Collationutf8_general_ci

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions