From 66f9c8f0d4c8bb0beb46a46d91b73da390e8ec61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Wed, 3 Feb 2016 16:54:40 +0100 Subject: [PATCH] Hide drag-n-drop re-ordering icon if "private $sortField" is not set. --- e107_handlers/admin_ui.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 7883f607c..3a1381af7 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -2561,8 +2561,15 @@ class e_admin_controller_ui extends e_admin_controller { return deftrue($this->pluginTitle, $this->pluginTitle); } - - + + /** + * Get Sort Field data + * @return string + */ + public function getSortField() + { + return $this->sortField; + } /** * Get Tab data @@ -5810,6 +5817,11 @@ class e_admin_form_ui extends e_form } } + if(!$controller->getSortField()) + { + $fields['options']['sort'] = false; + } + // ------------------------------------------