Moved Cookie set to before QSO Save

This might fix #938
这个提交包含在:
Peter Goodhall 2021-03-14 14:41:24 +00:00
父节点 3964acbdc8
当前提交 341c014a8e

查看文件

@ -54,11 +54,6 @@ class QSO extends CI_Controller {
} }
else 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 // Store Basic QSO Info for reuse
// Put data in an array first, then call set_userdata once. // Put data in an array first, then call set_userdata once.
// This solves the problem of CI dumping out the session // 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'); $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 // Get last 5 qsos
$data['query'] = $this->logbook_model->last_custom('5'); $data['query'] = $this->logbook_model->last_custom('5');