Add new Filter

This commit is contained in:
HB9HIL 2023-10-04 10:40:18 +02:00 committed by GitHub
parent 97cdd211d8
commit 803b0d06bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -64,11 +64,19 @@ class Logbookadvanced_model extends CI_Model {
}
if ($searchCriteria['qslSentMethod'] !== '') {
$condition = "COL_QSL_SENT_VIA = ?";
if ($searchCriteria['qslSentMethod'] == 'N') {
$condition = '('.$condition;
$condition .= " OR COL_QSL_SENT_VIA OR COL_QSL_SENT_VIA = '')";
}
$conditions[] = $condition;
$binding[] = $searchCriteria['qslSentMethod'];
}
if ($searchCriteria['qslReceivedMethod'] !== '') {
$condition = "COL_QSL_RECV_VIA = ?";
if ($searchCriteria['qslReceivedMethod'] == 'N') {
$condition = '('.$condition;
$condition .= " OR COL_QSL_RECV_VIA OR COL_QSL_RECV_VIA = '')";
}
$conditions[] = $condition;
$binding[] = $searchCriteria['qslReceivedMethod'];
}