Skip to content

Commit

Permalink
Merge pull request #55 from Icinga/fix/custom-var-dimension-order-#53
Browse files Browse the repository at this point in the history
Order custom var dimensions by name
  • Loading branch information
lippserd authored Apr 7, 2020
2 parents 3b6bab4 + ca53aeb commit 7939f0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Cube/Ido/IdoHostStatusCube.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public function listAvailableDimensions()
$select->where('cv.is_json = 0');
}

$select->order('cv.varname');

return $this->filterProtectedCustomvars($this->db()->fetchCol($select));
}

Expand Down
2 changes: 2 additions & 0 deletions library/Cube/Ido/IdoServiceStatusCube.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function listAvailableDimensions()
$select->where('cv.is_json = 0');
}

$select->order('cv.varname');

return $this->filterProtectedCustomvars($this->db()->fetchCol($select));
}

Expand Down

0 comments on commit 7939f0c

Please sign in to comment.