Release of v4.1.2-alpha3

Migrates view HTML classes to use getModel() directly instead of the deprecated magic get() calls to model methods. Refactores event handling (contentPrepare, titlePrepare, contentBeforeDisplay, contentAfterDisplay) to use Joomla 5’s native event dispatcher via the model’s new getDispatcher() method. Updates table classes to properly support NULL values, both in the store() method and in table variable definitions. #1245. Extractes the setAutoCheckIn() and setCheckInCall() logic into a dedicated CheckInNow class for cleaner design. Replace all direct $app->input property calls with the recommended $app->getInput() method across the entire codebase.
This commit is contained in:
2025-09-03 20:33:04 +00:00
parent 347104765a
commit 1c26c7d277
334 changed files with 2591 additions and 1505 deletions

View File

@@ -108,20 +108,21 @@ class Components_admin_viewsModel extends ListModel
protected function populateState($ordering = null, $direction = null)
{
$app = $this->app;
$input = $this->app->getInput();
// Adjust the context to support modal layouts.
if ($layout = $app->input->get('layout'))
if ($layout = $input->get('layout'))
{
$this->context .= '.' . $layout;
}
// Check if the form was submitted
$formSubmited = $app->input->post->get('form_submited');
$formSubmited = $input->post->get('form_submited');
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
if ($formSubmited)
{
$access = $app->input->post->get('access');
$access = $input->post->get('access');
$this->setState('filter.access', $access);
}
@@ -351,6 +352,7 @@ class Components_admin_viewsModel extends ListModel
$query->from($db->quoteName('#__componentbuilder_component_admin_views'));
// Only select items that are checked out.
$query->where(('checked_out') . ' >= 0');
// Query only to see if we have a rows
$db->setQuery($query, 0, 1);
$db->execute();
if ($db->getNumRows())