add QSLMSG to batchedit

This commit is contained in:
github-actions
2024-08-03 15:00:35 +02:00
parent 9aa222fa08
commit bf4c377210
3 changed files with 12 additions and 2 deletions

View File

@@ -528,6 +528,7 @@ class Logbookadvanced_model extends CI_Model {
case "contest": $column = 'COL_CONTEST_ID'; break;
case "lotwsent": $column = 'COL_LOTW_QSL_SENT'; break;
case "lotwreceived": $column = 'COL_LOTW_QSL_RCVD'; break;
case "qslmsg": $column = 'COL_QSLMSG'; break;
default: return;
}
@@ -652,6 +653,14 @@ class Logbookadvanced_model extends CI_Model {
" SET " . $this->config->item('table_name').".COL_LOTW_QSL_RCVD = ?, " . $this->config->item('table_name').".COL_LOTW_QSLRDATE = now()" .
" WHERE " . $this->config->item('table_name').".col_primary_key in ? and station_profile.user_id = ?";
$query = $this->db->query($sql, array($value, json_decode($ids, true), $this->session->userdata('user_id')));
} else if ($column == 'COL_QSLMSG') {
$sql = "UPDATE ".$this->config->item('table_name')." JOIN station_profile ON ". $this->config->item('table_name').".station_id = station_profile.station_id" .
" SET " . $this->config->item('table_name').".COL_QSLMSG = ? " .
" WHERE " . $this->config->item('table_name').".col_primary_key in ? and station_profile.user_id = ?";
$query = $this->db->query($sql, array($value, json_decode($ids, true), $this->session->userdata('user_id')));
} else {

View File

@@ -13,6 +13,7 @@
<option value="pota"><?= __("POTA"); ?></option>
<option value="propagation"><?= __("Propagation"); ?></option>
<option value="qslvia"><?= __("QSL via"); ?></option>
<option value="qslmsg">QSLMSG</option>
<option value="satellite"><?= __("Satellite"); ?></option>
<option value="sota"><?= __("SOTA"); ?></option>
<option value="station"><?= __("Station Location"); ?></option>

View File

@@ -183,7 +183,7 @@ function saveBatchEditQsos(id_list) {
if (column == 'lotwsent' || column == 'lotwreceived') {
value = $("#editLoTW").val();
}
if (column == 'sota' || column == 'pota' || column == 'wwff' || column == 'gridsquare' || column == 'comment' || column == 'operator' || column == 'qslvia' || column == 'contest') {
if (column == 'sota' || column == 'pota' || column == 'wwff' || column == 'gridsquare' || column == 'comment' || column == 'operator' || column == 'qslvia' || column == 'contest' || column == 'qslmsg') {
value = $("#editTextInput").val();
}
@@ -262,7 +262,7 @@ function changeEditType(type) {
$('#editContest').show();
} else if (type == "lotwsent" || type == "lotwreceived") {
$('#editLoTW').show();
} else if (type == "gridsquare" || type == "sota" || type == "wwff" || type == "operator" || type == "pota" || type == "comment" || type == "qslvia" || type == "contest") {
} else if (type == "gridsquare" || type == "sota" || type == "wwff" || type == "operator" || type == "pota" || type == "comment" || type == "qslvia" || type == "contest" || type == "qslmsg") {
$('#editTextInput').show();
}
}