diff --git a/application/controllers/Dashboard.php b/application/controllers/Dashboard.php index 1f8c1421f..e315a4cab 100644 --- a/application/controllers/Dashboard.php +++ b/application/controllers/Dashboard.php @@ -67,10 +67,10 @@ class Dashboard extends CI_Controller { $data['current_active'] = $this->stations->find_active(); $data['themesWithoutMode'] = $this->setup_model->checkThemesWithoutMode(); - if (($this->optionslib->get_option('dashboard_map') == 'true') && (($this->session->userdata('user_dashboard_map') ?? 'Y') == 'Y')) { - $data['dashboard_map'] = $this->optionslib->get_option('dashboard_map'); + if (($this->session->userdata('user_dashboard_map') ?? '') != '') { + $data['dashboard_map'] = $this->session->userdata('user_dashboard_map') ?? 'Y'; } else { - $data['dashboard_map'] = 'false'; + $data['dashboard_map'] = 'N'; } $data['user_map_custom'] = $this->optionslib->get_map_custom(); diff --git a/application/controllers/Options.php b/application/controllers/Options.php index 30c247a63..520950979 100644 --- a/application/controllers/Options.php +++ b/application/controllers/Options.php @@ -94,14 +94,6 @@ class Options extends CI_Controller { $this->session->set_flashdata('success', __("Options saved")); } - // Update dashboard map within the options system - $dashboard_map_update_status = $this->optionslib->update('dashboard_map', $this->input->post('dashboardMap'), 'yes'); - - // If dashboard map update is complete set a flashsession with a success note - if($dashboard_map_update_status == TRUE) { - $this->session->set_flashdata('success', __("Options saved")); - } - // Update logbook map within the options system $logbook_map_update_status = $this->optionslib->update('logbook_map', $this->input->post('logbookMap'), 'yes'); diff --git a/application/views/dashboard/index.php b/application/views/dashboard/index.php index 83f38eade..23209026b 100644 --- a/application/views/dashboard/index.php +++ b/application/views/dashboard/index.php @@ -203,7 +203,7 @@ function getDistance($distance) { load->view('layout/messages'); ?> - +
diff --git a/application/views/options/appearance.php b/application/views/options/appearance.php index e05dfc9f8..4c4de9b6c 100644 --- a/application/views/options/appearance.php +++ b/application/views/options/appearance.php @@ -66,16 +66,6 @@ = __("This allows to disable the global notification banner on the dashboard."); ?> -