Add new Filter
这个提交包含在:
父节点
97cdd211d8
当前提交
803b0d06bd
共有 3 个文件被更改,包括 11 次插入 和 3 次删除
|
|
@ -454,4 +454,4 @@ class Logbookadvanced extends CI_Controller {
|
|||
$this->load->model('user_options_model');
|
||||
$this->user_options_model->set_option('LogbookAdvanced', 'LogbookAdvanced', $obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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'];
|
||||
}
|
||||
|
|
@ -438,4 +446,4 @@ class Logbookadvanced_model extends CI_Model {
|
|||
|
||||
return $this->db->get()->result();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -471,4 +471,4 @@ $options = json_decode($options);
|
|||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
正在加载…
在新工单中引用