Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function displayList()

// Push the model into the view (as default)
$view->setModel($model, true);
$view->set('component_name', $this->input->get('component_name'));
$view->component_name = $this->input->get('component_name');

$view->document = $this->app->getDocument();
$view->displayList();
Expand Down
3 changes: 0 additions & 3 deletions libraries/src/MVC/Model/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\Filesystem\Path;

// phpcs:disable PSR1.Files.SideEffects
Expand All @@ -29,8 +28,6 @@ abstract class BaseModel implements ModelInterface, StatefulModelInterface
use StateBehaviorTrait;
use LegacyModelLoaderTrait;
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait;


/**
* The model (base) name
Expand Down
5 changes: 0 additions & 5 deletions libraries/src/MVC/View/AbstractView.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Joomla\CMS\Language\LanguageAwareTrait;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\Event\DispatcherAwareInterface;
use Joomla\Event\DispatcherAwareTrait;
use Joomla\Event\DispatcherInterface;
Expand All @@ -39,10 +38,6 @@ abstract class AbstractView implements ViewInterface, DispatcherAwareInterface,
use DispatcherAwareTrait;
use LanguageAwareTrait;
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait {
get as private legacyGet;
}


/**
* The active document object
Expand Down
19 changes: 0 additions & 19 deletions tests/Unit/Libraries/Cms/MVC/View/AbstractViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,25 +132,6 @@ public function display($tpl = null)
$this->assertEquals($model, $view->getModel());
}

/**
* @testdox can get data
*
* @return void
*
* @since 4.2.0
*/
public function testGetData()
{
$view = new class () extends AbstractView {
public function display($tpl = null)
{
}
};
$view->set('unit', 'test');

$this->assertEquals('test', $view->get('unit', ''));
}

/**
* @testdox can get data
*
Expand Down
Loading