From 8d3dc3dd1080ffaf947800e75f479f42d87f2334 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Mon, 11 Mar 2024 00:18:44 +0300 Subject: [PATCH] cleanup code --- .../administrator/src/Model/ClientsModel.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/com_oauthserver/administrator/src/Model/ClientsModel.php b/com_oauthserver/administrator/src/Model/ClientsModel.php index 0c8603b..a3c34f2 100644 --- a/com_oauthserver/administrator/src/Model/ClientsModel.php +++ b/com_oauthserver/administrator/src/Model/ClientsModel.php @@ -9,7 +9,6 @@ namespace Webmasterskaya\Component\OauthServer\Administrator\Model; -use Joomla\CMS\Factory; use Joomla\CMS\MVC\Factory\MVCFactoryInterface; use Joomla\CMS\MVC\Model\ListModel; use Joomla\Database\ParameterType; @@ -63,14 +62,6 @@ class ClientsModel extends ListModel */ protected function populateState($ordering = null, $direction = null): void { - $app = Factory::getApplication(); - - // Adjust the context to support modal layouts. - if ($layout = $app->input->get('layout')) - { - $this->context .= '.' . $layout; - } - // List state information $ordering = empty($ordering) ? 'client.id' : $ordering; @@ -108,7 +99,7 @@ class ClientsModel extends ListModel $query = $db->getQuery(true); - $query->select(['client.id', 'client.name', 'client.secret', 'client.identifier', 'client.public', 'client.redirect_uris', 'client.allow_plain_text_pkce', 'client.scopes', 'client.grants']) + $query->select(['client.id', 'client.name', 'client.secret', 'client.identifier', 'client.public', 'client.scopes', 'client.grants']) ->from($db->qn('#__webmasterskaya_oauthserver_clients', 'client')); // Filter by search state