mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
DataView: remove duplicate case handling
This commit is contained in:
parent
dab90d6c4a
commit
93e2f36fc8
@ -224,6 +224,7 @@ public function dump()
|
|||||||
public function sort($column = null, $order = null)
|
public function sort($column = null, $order = null)
|
||||||
{
|
{
|
||||||
$sortRules = $this->getSortRules();
|
$sortRules = $this->getSortRules();
|
||||||
|
|
||||||
if ($sortRules !== null) {
|
if ($sortRules !== null) {
|
||||||
if ($column === null) {
|
if ($column === null) {
|
||||||
$sortColumns = reset($sortRules);
|
$sortColumns = reset($sortRules);
|
||||||
@ -274,7 +275,7 @@ public function dump()
|
|||||||
*/
|
*/
|
||||||
public function order($column = null, $direction = null)
|
public function order($column = null, $direction = null)
|
||||||
{
|
{
|
||||||
return $this->sort($column, $direction !== null ? strtoupper($direction) : null);
|
return $this->sort($column, $direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user