mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[OQRS] Fix the qso match button
This commit is contained in:
@@ -603,7 +603,7 @@ class Oqrs_model extends CI_Model {
|
||||
$this->db->from('oqrs');
|
||||
$this->db->join('station_profile', 'station_profile.station_id = oqrs.station_id');
|
||||
$this->db->where('oqrs.id', $oqrsid);
|
||||
$this->db->where('oqrs.qsoid', 0); // Ensure we are adding a match to an empty qsoid
|
||||
$this->db->where('oqrs.qsoid IS NULL', null, false); // Ensure we are adding a match to an empty qsoid
|
||||
$this->db->where('station_profile.user_id', $this->session->userdata('user_id'));
|
||||
$query = $this->db->get();
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ function return_add_print_button($qso_id, $qslsent) {
|
||||
}
|
||||
|
||||
function return_add_match_qso_button($qso_id, $qsoid, $matchqsoid, $oqrsid) {
|
||||
if ($qso_id != $qsoid && $matchqsoid == 0) return '<button onclick="addQsoMatchToOqrs(\'' . $qso_id . '\', \'' . $oqrsid . '\')" class="btn btn-sm btn-success">' . __("Match QSO") . '</button>';
|
||||
if ($qso_id != $qsoid && $matchqsoid == null) return '<button onclick="addQsoMatchToOqrs(\'' . $qso_id . '\', \'' . $oqrsid . '\')" class="btn btn-sm btn-success">' . __("Match QSO") . '</button>';
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user