From 71b38c72a5d9acf106dec1b48c144e8dba8151cf Mon Sep 17 00:00:00 2001
From: Andreas <6977712+AndreasK79@users.noreply.github.com>
Date: Thu, 8 Sep 2022 20:19:41 +0200
Subject: [PATCH] [Bands] Contest logging band dropdown fetches bands from db.
---
application/controllers/Contesting.php | 2 ++
application/views/contesting/index.php | 42 ++++++--------------------
2 files changed, 12 insertions(+), 32 deletions(-)
diff --git a/application/controllers/Contesting.php b/application/controllers/Contesting.php
index a32765ff..07103a83 100644
--- a/application/controllers/Contesting.php
+++ b/application/controllers/Contesting.php
@@ -20,11 +20,13 @@ class Contesting extends CI_Controller {
$this->load->model('stations');
$this->load->model('modes');
$this->load->model('contesting_model');
+ $this->load->model('bands');
$data['my_gridsquare'] = $this->stations->find_gridsquare();
$data['radios'] = $this->cat->radios();
$data['modes'] = $this->modes->active();
$data['contestnames'] = $this->contesting_model->getActivecontests();
+ $data['bands'] = $this->bands->get_user_bands_for_qso_entry();
$this->load->library('form_validation');
diff --git a/application/views/contesting/index.php b/application/views/contesting/index.php
index 471a6547..8e7a5a89 100644
--- a/application/views/contesting/index.php
+++ b/application/views/contesting/index.php
@@ -65,38 +65,16 @@