Module: check_mk
Branch: master
Commit: 0639c51d0124a3ee8bd58f36c0d762a0dc2899de
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0639c51d0124a3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 8 09:59:40 2016 +0100
4135 View CSV export: Group cells are added in front of the regular cells for each row
The group cells were missing in the export. So it was not possible to reproduce the
grouping
with the exported data.
---
.werks/4135 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/views/webservice.py | 4 ++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/4135 b/.werks/4135
new file mode 100644
index 0000000..da912b5
--- /dev/null
+++ b/.werks/4135
@@ -0,0 +1,10 @@
+Title: View CSV export: Group cells are added in front of the regular cells for each row
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i3
+Date: 1481187505
+Class: feature
+
+The group cells were missing in the export. So it was not possible to reproduce the
grouping
+with the exported data.
diff --git a/ChangeLog b/ChangeLog
index a9d73a4..ec66a46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,7 @@
* 4107 Now you are able to search for check plugins
* 3997 New metric for mrpe/check_icmp...
* 4083 Web API: Always output full traceback in case of non Check_MK unhandled
exceptions
+ * 4135 View CSV export: Group cells are added in front of the regular cells for each
row...
* 3974 FIX: Sorting comments in hover menu of comments icon by time now
* 4040 FIX: Fix error in view about "No WATO folder ..." in case of host
imported via cmcdump...
* 4046 FIX: Repaired html rendering....
diff --git a/web/plugins/views/webservice.py b/web/plugins/views/webservice.py
index 32cbaa8..84705f5 100644
--- a/web/plugins/views/webservice.py
+++ b/web/plugins/views/webservice.py
@@ -130,7 +130,7 @@ def render_csv(rows, view, group_cells, cells, num_columns,
show_checkboxes, exp
csv_separator = html.var("csv_separator", ";")
first = True
- for cell in cells:
+ for cell in group_cells + cells:
if first:
first = False
else:
@@ -143,7 +143,7 @@ def render_csv(rows, view, group_cells, cells, num_columns,
show_checkboxes, exp
for row in rows:
html.write("\n")
first = True
- for cell in cells:
+ for cell in group_cells + cells:
if first:
first = False
else: