kopia lustrzana https://github.com/magicbug/Cloudlog
Fixed EQSL-Col naming
rodzic
7a6e84a52e
commit
e4fa5e0861
|
@ -86,19 +86,19 @@ class Logbookadvanced_model extends CI_Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($searchCriteria['eqslSent'] !== '') {
|
if ($searchCriteria['eqslSent'] !== '') {
|
||||||
$condition = "COL_EQSL_SENT = ?";
|
$condition = "COL_EQSL_QSL_SENT = ?";
|
||||||
if ($searchCriteria['eqslSent'] == 'N') {
|
if ($searchCriteria['eqslSent'] == 'N') {
|
||||||
$condition = '('.$condition;
|
$condition = '('.$condition;
|
||||||
$condition .= " OR COL_EQSL_SENT IS NULL OR COL_EQSL_SENT = '')";
|
$condition .= " OR COL_EQSL_QSL_SENT IS NULL OR COL_EQSL_QSL_SENT = '')";
|
||||||
}
|
}
|
||||||
$conditions[] = $condition;
|
$conditions[] = $condition;
|
||||||
$binding[] = $searchCriteria['eqslSent'];
|
$binding[] = $searchCriteria['eqslSent'];
|
||||||
}
|
}
|
||||||
if ($searchCriteria['eqslReceived'] !== '') {
|
if ($searchCriteria['eqslReceived'] !== '') {
|
||||||
$condition = "COL_EQSL_RCVD = ?";
|
$condition = "COL_EQSL_QSL_RCVD = ?";
|
||||||
if ($searchCriteria['eqslReceived'] == 'N') {
|
if ($searchCriteria['eqslReceived'] == 'N') {
|
||||||
$condition = '('.$condition;
|
$condition = '('.$condition;
|
||||||
$condition .= " OR COL_EQSL_RCVD IS NULL OR COL_EQSL_RCVD = '')";
|
$condition .= " OR COL_EQSL_QSL_RCVD IS NULL OR COL_EQSL_QSL_RCVD = '')";
|
||||||
}
|
}
|
||||||
$conditions[] = $condition;
|
$conditions[] = $condition;
|
||||||
$binding[] = $searchCriteria['eqslReceived'];
|
$binding[] = $searchCriteria['eqslReceived'];
|
||||||
|
|
Ładowanie…
Reference in New Issue