Module: check_mk
Branch: master
Commit: 05a9b77904e9490dae24e60a3a5d46ad5c9569f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05a9b77904e949…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Thu Feb 7 15:35:45 2019 +0100
Fix sorting for joined Columns
Change-Id: Id927dde2b43a284e9d0d7c973bbcf67ba15b1e54
---
cmk/gui/views.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk/gui/views.py b/cmk/gui/views.py
index 6b7603f..8d25816 100644
--- a/cmk/gui/views.py
+++ b/cmk/gui/views.py
@@ -1798,8 +1798,8 @@ def sort_data(data, sorters):
neg = -1 if entry.negate else 1
if entry.join_key: # Sorter for join column, use JOIN info
- c = neg * save_compare(entry.sorter.cmp,
e1["JOIN"].get(entry.sorter.join_key),
- e2["JOIN"].get(entry.sorter.join_key))
+ c = neg * save_compare(entry.sorter.cmp,
e1["JOIN"].get(entry.join_key),
+ e2["JOIN"].get(entry.join_key))
else:
c = neg * entry.sorter.cmp(e1, e2)