Fixes sorting on Tag Id in the ManageTags View.
This commit is contained in:
parent
bcbb74a680
commit
331193019c
@ -27,7 +27,7 @@ class ManageTags extends HTMLController
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'columns' => [
|
'columns' => [
|
||||||
'id_post' => [
|
'id_tag' => [
|
||||||
'value' => 'id_tag',
|
'value' => 'id_tag',
|
||||||
'header' => 'ID',
|
'header' => 'ID',
|
||||||
'is_sortable' => true,
|
'is_sortable' => true,
|
||||||
@ -68,7 +68,7 @@ class ManageTags extends HTMLController
|
|||||||
'index_class' => 'floatleft',
|
'index_class' => 'floatleft',
|
||||||
'base_url' => BASEURL . '/managetags/',
|
'base_url' => BASEURL . '/managetags/',
|
||||||
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'up') {
|
'get_data' => function($offset = 0, $limit = 30, $order = '', $direction = 'up') {
|
||||||
if (!in_array($order, ['id_post', 'tag', 'slug', 'kind', 'count']))
|
if (!in_array($order, ['id_tag', 'tag', 'slug', 'kind', 'count']))
|
||||||
$order = 'tag';
|
$order = 'tag';
|
||||||
if (!in_array($direction, ['up', 'down']))
|
if (!in_array($direction, ['up', 'down']))
|
||||||
$direction = 'up';
|
$direction = 'up';
|
||||||
|
Loading…
Reference in New Issue
Block a user