1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Hide drag-n-drop re-ordering icon if "private $sortField" is not set.

This commit is contained in:
Lóna Lore
2016-02-03 16:54:40 +01:00
parent 391f7c2148
commit 66f9c8f0d4

View File

@@ -2562,7 +2562,14 @@ 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;
}
// ------------------------------------------