kopia lustrzana https://github.com/magicbug/Cloudlog
[eQSL] Mark QSOs. Refined the update instead of updating everything without filter.
rodzic
79cc55075c
commit
dfce53073d
|
@ -7,7 +7,14 @@ class Eqslmethods_model extends CI_Model {
|
|||
'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);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue