Skip to content

Commit

Permalink
Merge pull request #1525 from AndreasK79/eqsl_mark_sent_update_fix
Browse files Browse the repository at this point in the history
[eQSL] Mark QSOs. Refined the update instead of updating everything w…
  • Loading branch information
AndreasK79 authored Jul 4, 2022
2 parents d0579ef + bd6fe55 commit ed33967
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions application/models/Eqslmethods_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ function mark_all_as_sent() {
'COL_EQSL_QSL_SENT' => 'Y',
'COL_EQSL_QSLSDATE' => date('Y-m-d')." 00:00:00",
);

$this->db->group_start();
$this->db->where('COL_EQSL_QSL_SENT', 'N');
$this->db->or_where('COL_EQSL_QSL_SENT', 'R');
$this->db->or_where('COL_EQSL_QSL_SENT', 'Q');
$this->db->or_where('COL_EQSL_QSL_SENT', null);
$this->db->group_end();

$this->db->update($this->config->item('table_name'), $data);
}
Expand Down

0 comments on commit ed33967

Please sign in to comment.