Fixed EQSL-Col naming

pull/2403/head
int2001 2023-08-14 04:03:46 +00:00
rodzic 7a6e84a52e
commit e4fa5e0861
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DFB1C13CD2DB037B
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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'];