From 331193019c01176e7e037498cb7f54266de8ab71 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 15 Mar 2018 21:36:24 +0100 Subject: [PATCH] Fixes sorting on Tag Id in the ManageTags View. --- controllers/ManageTags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/ManageTags.php b/controllers/ManageTags.php index 476e900..b600f2d 100644 --- a/controllers/ManageTags.php +++ b/controllers/ManageTags.php @@ -27,7 +27,7 @@ class ManageTags extends HTMLController ], ], 'columns' => [ - 'id_post' => [ + 'id_tag' => [ 'value' => 'id_tag', 'header' => 'ID', 'is_sortable' => true, @@ -68,7 +68,7 @@ class ManageTags extends HTMLController 'index_class' => 'floatleft', 'base_url' => BASEURL . '/managetags/', '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'; if (!in_array($direction, ['up', 'down'])) $direction = 'up';