From 5764ffe4585b8d00139453ee021bbfc609d59e06 Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Fri, 24 May 2024 16:21:25 +0200
Subject: [PATCH] BIS-1076: changed export of spreadsheet values to export
 processed values instead of formulas. Added check for backwards
 compatibility.

---
 .../server/asapi/v3/executor/exporter/ExportExecutor.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/server-application-server/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/exporter/ExportExecutor.java b/server-application-server/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/exporter/ExportExecutor.java
index 87a19ffe38e..056df3c0a94 100644
--- a/server-application-server/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/exporter/ExportExecutor.java
+++ b/server-application-server/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/exporter/ExportExecutor.java
@@ -1809,7 +1809,12 @@ public class ExportExecutor implements IExportExecutor
 
     private static String convertJsonToHtml(final TreeNode node) throws IOException
     {
-        final TreeNode data = node.get("data");
+
+        TreeNode data = node.get("values");
+        if(data == null) {
+            // backwards compatibility
+            data = node.get("data");
+        }
         final TreeNode styles = node.get("style");
 
         final StringBuilder tableBody = new StringBuilder();
-- 
GitLab