mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
Add new Filter
This commit is contained in:
parent
97cdd211d8
commit
803b0d06bd
@ -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'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user