Profile or Config User QRA stored against COL_MY_GRIDSQUARE for each qso

This commit is contained in:
Peter Goodhall
2011-09-27 20:32:59 +01:00
parent 6f51461793
commit f8284ad41a

View File

@@ -18,6 +18,12 @@ class Logbook_model extends CI_Model {
} else {
$prop_mode = "";
}
if($this->session->userdata('user_locator')){
$locator = $this->session->userdata('user_locator');
} else {
$locator = $this->config->item('locator');
}
// Create array with QSO Data
@@ -46,6 +52,7 @@ class Logbook_model extends CI_Model {
'COL_OPERATOR' => $this->session->userdata('user_callsign'),
'COL_PROP_MODE' => $prop_mode,
'COL_IOTA' => $this->input->post('iota_ref'),
'COL_MY_GRIDSQUARE' => $locator,
);
// Add QSO to database