kopia lustrzana https://github.com/magicbug/Cloudlog
Use QSO ID to delete QSL rather than QSL ID
rodzic
6f597ff7a2
commit
965323202c
|
@ -60,7 +60,11 @@ class Qsl_model extends CI_Model {
|
|||
// be sure that QSO belongs to user
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('logbook_model');
|
||||
if (!$CI->logbook_model->check_qso_is_accessible($clean_id)) {
|
||||
$this->db->select('qsoid');
|
||||
$this->db->from('qsl_images');
|
||||
$this->db->where('id', $clean_id);
|
||||
$qsoid = $this->db->get()->row()->qsoid;
|
||||
if (!$CI->logbook_model->check_qso_is_accessible($qsoid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -75,7 +79,11 @@ class Qsl_model extends CI_Model {
|
|||
// be sure that QSO belongs to user
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('logbook_model');
|
||||
if (!$CI->logbook_model->check_qso_is_accessible($clean_id)) {
|
||||
$this->db->select('qsoid');
|
||||
$this->db->from('qsl_images');
|
||||
$this->db->where('id', $clean_id);
|
||||
$qsoid = $this->db->get()->row()->qsoid;
|
||||
if (!$CI->logbook_model->check_qso_is_accessible($qsoid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue