From 63dbedc1a852298858e8e507501a247adc75fb8c Mon Sep 17 00:00:00 2001
From: OpenXE <>
Date: Tue, 2 May 2023 13:16:31 +0200
Subject: [PATCH] report exclude readonly reports as default, added row preview
---
classes/Modules/Report/ReportService.php | 5 +
www/pages/content/report_list.tpl | 2 +-
www/pages/report.php | 6374 +++++++++++-----------
3 files changed, 3193 insertions(+), 3188 deletions(-)
diff --git a/classes/Modules/Report/ReportService.php b/classes/Modules/Report/ReportService.php
index 713eece8..4bf9bdde 100644
--- a/classes/Modules/Report/ReportService.php
+++ b/classes/Modules/Report/ReportService.php
@@ -492,6 +492,8 @@ final class ReportService
$testResult['messagetype'] = 'error';
$testResult['message'] = sprintf("QUERY FAILED:\n%s", $e->getMessage());
+ $testResult['message'] .= "\n\r".$compiled;
+
return $testResult;
}
@@ -500,6 +502,9 @@ final class ReportService
if(count($rows) < 101){
$message = sprintf('Query successful: %s datasets found', count($rows));
}
+
+ $message .= "\n\r".print_r($rows[0],true);
+
$testResult = [
'messagetype' => 'success',
'message' => $message,
diff --git a/www/pages/content/report_list.tpl b/www/pages/content/report_list.tpl
index ab15059c..774d4531 100644
--- a/www/pages/content/report_list.tpl
+++ b/www/pages/content/report_list.tpl
@@ -26,7 +26,7 @@
-
+