From 4da4b11197b6d2ec30ea3257feb96f7e09ec24d2 Mon Sep 17 00:00:00 2001 From: DJ3CE Date: Tue, 28 Oct 2025 13:06:35 +0100 Subject: [PATCH] Exclude 'RPT'-Propagation in SOTA-CSV-Export --- application/models/Csv_model.php | 8 ++++++-- application/views/csv/index.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/application/models/Csv_model.php b/application/models/Csv_model.php index cf5fec703..aa06a1ec4 100644 --- a/application/models/Csv_model.php +++ b/application/models/Csv_model.php @@ -58,9 +58,13 @@ class Csv_model extends CI_Model $binds[]=$cqz; } - if ($propagation != 'All') { + if ($propagation == 'NoRPT') { // All but RPT + $sql .= " and COL_PROP_MODE != 'RPT'"; + } else if ($propagation == 'All') { + ; // No Prop-Filter + } else { // Propmode set, add SQL $sql .= " and COL_PROP_MODE = ?"; - $binds[]=$propagation; + $binds[] = $propagation; } // If date is set, we format the date and add it to the where-statement diff --git a/application/views/csv/index.php b/application/views/csv/index.php index fcabdffa9..5aef3df99 100644 --- a/application/views/csv/index.php +++ b/application/views/csv/index.php @@ -92,6 +92,7 @@