Now exports ALL qsos with the given filters

This commit is contained in:
Andreas Kristiansen
2024-05-08 10:49:13 +02:00
parent 051963da96
commit 3225de0661
2 changed files with 7 additions and 2 deletions

View File

@@ -206,6 +206,7 @@ class Logbookadvanced extends CI_Controller {
$postdata = $this->input->post();
$postdata['user_id'] = (int)$this->session->userdata('user_id');
$postdata['qsoresults'] = 'All';
$data['qsos'] = $this->logbookadvanced_model->getSearchResult($postdata);
$this->load->view('adif/data/exportall', $data);

View File

@@ -208,7 +208,11 @@ class Logbookadvanced_model extends CI_Model {
$where = "AND $where";
}
$limit = $searchCriteria['qsoresults'];
$limit = '';
if ($searchCriteria['qsoresults'] != 'All') {
$limit = 'limit ' . $searchCriteria['qsoresults'];
}
$where2 = '';
@@ -237,7 +241,7 @@ class Logbookadvanced_model extends CI_Model {
$where
$where2
ORDER BY qsos.COL_TIME_ON desc, qsos.COL_PRIMARY_KEY desc
LIMIT $limit
$limit
";
return $this->db->query($sql, $binding);