From e4b12caa2ac535bb1f181f2d876ae6a3e6d9b834 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 7 Mar 2025 14:36:54 +0000 Subject: [PATCH] No specific SAT or Orbit at IOTA! --- application/models/Iota.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/application/models/Iota.php b/application/models/Iota.php index c62b06adc..32822fc68 100644 --- a/application/models/Iota.php +++ b/application/models/Iota.php @@ -71,6 +71,11 @@ class IOTA extends CI_Model { $binding[] = $postdata['mode']; $binding[] = $postdata['mode']; } + if ($band == 'SAT') { + $sql .= " and col_prop_mode='SAT'"; + } else { + $sql.=" and (col_prop_mode!='SAT' or col_prop_mode is null)"; + } $sql .= $this->genfunctions->addBandToQuery($band,$binding); @@ -99,6 +104,11 @@ class IOTA extends CI_Model { $binding[] = $postdata['mode']; $binding[] = $postdata['mode']; } + if ($band == 'SAT') { + $sql .= " and col_prop_mode='SAT'"; + } else { + $sql.=" and (col_prop_mode!='SAT' or col_prop_mode is null)"; + } $sql .= $this->genfunctions->addBandToQuery($band,$binding); @@ -142,6 +152,8 @@ class IOTA extends CI_Model { $sql .= " and col_band = ?"; $binding[] = $postdata['band']; } + } else { + $sql.=" and (col_prop_mode != 'SAT' or col_prop_mode is null)"; } $sql .= ")"; } @@ -165,6 +177,11 @@ class IOTA extends CI_Model { $binding[] = $postdata['mode']; $binding[] = $postdata['mode']; } + if ($postdata['band'] == 'SAT') { + $sql .= " and col_prop_mode='SAT'"; + } else { + $sql.=" and (col_prop_mode!='SAT' or col_prop_mode is null)"; + } $sql .= $this->genfunctions->addBandToQuery($postdata['band'],$binding); @@ -198,6 +215,11 @@ class IOTA extends CI_Model { $binding[] = $postdata['mode']; $binding[] = $postdata['mode']; } + if ($postdata['band'] == 'SAT') { + $sql .= " and col_prop_mode='SAT'"; + } else { + $sql.=" and (col_prop_mode!='SAT' or col_prop_mode is null)"; + } if ($postdata['includedeleted'] == NULL) { $sql .= " and coalesce(iota.status, '') <> 'D'";