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 @@