Adds update server link. Set v2.12.6. Little bug fix on the Component admin list view.

This commit is contained in:
2021-02-02 23:13:59 +02:00
parent 54a86fb530
commit 9f59578f8c
8 changed files with 27 additions and 16 deletions

View File

@ -56,7 +56,7 @@
label="COM_CONTENT_LIST_FULL_ORDERING"
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
onchange="this.form.submit();"
default="a.id DESC"
default="a.id desc"
validate="options"
>
<option value="">JGLOBAL_SORT_BY</option>

View File

@ -2361,6 +2361,14 @@ class ComponentbuilderModelJoomla_components extends JModelList
$query->where('a.author IN (' . implode(',', $_author) . ')');
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));
}
return $query;
}
@ -2418,6 +2426,9 @@ class ComponentbuilderModelJoomla_components extends JModelList
$query->where('a.access IN (' . $groups . ')');
}
// Order the results by ordering
$query->order('a.id desc');
// Load the items
$db->setQuery($query);
$db->execute();