Fix batch edit for CQ/ITU - set to null

This commit is contained in:
Andreas Kristiansen
2026-01-05 21:29:42 +01:00
parent e70d5243a5
commit a4492b612e

View File

@@ -1332,6 +1332,10 @@ class Logbookadvanced_model extends CI_Model {
$skipqrzupdate = true;
} else {
if ($value == "null") {
$value = null;
}
$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').".".$column . " = ? 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')));