Moved Cookie set to before QSO Save

This might fix #938
pull/940/head
Peter Goodhall 2021-03-14 14:41:24 +00:00
rodzic 3964acbdc8
commit 341c014a8e
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -54,11 +54,6 @@ class QSO extends CI_Controller {
}
else
{
// Add QSO
// $this->logbook_model->add();
//change to create_qso function as add and create_qso duplicate functionality
$this->logbook_model->create_qso();
// Store Basic QSO Info for reuse
// Put data in an array first, then call set_userdata once.
// This solves the problem of CI dumping out the session
@ -94,6 +89,11 @@ class QSO extends CI_Controller {
$this->session->set_userdata('prop_mode', 'SAT');
}
// Add QSO
// $this->logbook_model->add();
//change to create_qso function as add and create_qso duplicate functionality
$this->logbook_model->create_qso();
// Get last 5 qsos
$data['query'] = $this->logbook_model->last_custom('5');