mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Merge pull request #1321 from lonalore/master
Hide drag-n-drop re-ordering icon if "private $sortField" is not set.
This commit is contained in:
commit
ec2f6c2dc2
@ -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;
|
||||
}
|
||||
|
||||
// ------------------------------------------
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user