Make Station_Location optionally move to 1st tab

This commit is contained in:
int2001
2025-12-10 21:05:26 +00:00
parent 973b304a6d
commit 35b0cf80f4
2 changed files with 28 additions and 1 deletions

View File

@@ -31,7 +31,11 @@ class QSO extends CI_Controller {
show_404();
}
$data['active_station_profile'] = $this->stations->find_active();
if ($this->stations->check_station_is_accessible($this->session->userdata('station_profile_id') ?? 0)) { // Last Station from session accessible? Take it!
$data['active_station_profile'] = $this->session->userdata('station_profile_id');
} else {
$data['active_station_profile'] =$this->stations->find_active();
}
$data['notice'] = false;
$data['stations'] = $this->stations->all_of_user();
@@ -88,6 +92,13 @@ class QSO extends CI_Controller {
$data['user_dok_to_qso_tab'] = 0;
}
$qkey_opt=$this->user_options_model->get_options('qso_tab',array('option_name'=>'station','option_key'=>'show'))->result();
if (count($qkey_opt)>0) {
$data['user_station_to_qso_tab'] = $qkey_opt[0]->option_value;
} else {
$data['user_station_to_qso_tab'] = 0;
}
// Get status of DX Waterfall enable option
$qkey_opt=$this->user_options_model->get_options('dxwaterfall',array('option_name'=>'enable','option_key'=>'boolean'))->result();
if (count($qkey_opt)>0) {