mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Clarify DuperCheck internally
This commit is contained in:
@@ -254,7 +254,12 @@ class adif extends CI_Controller {
|
||||
};
|
||||
$record=''; // free memory
|
||||
try {
|
||||
$custom_errors = $this->logbook_model->import_bulk($alladif, $this->input->post('station_profile', TRUE), $this->input->post('skipDuplicate'), $this->input->post('markClublog'),$this->input->post('markLotw'), $this->input->post('dxccAdif'), $this->input->post('markQrz'), $this->input->post('markEqsl'), $this->input->post('markHrd'), $this->input->post('markDcl'), true, $this->input->post('operatorName') ?? false, false, $this->input->post('skipStationCheck'));
|
||||
if (($this->input->post('skipDuplicate',true) ?? '') == '1') { // Reverse Logic. View states: "Import Dupes", while Flag is called skipDuplicates
|
||||
$skipDups=false; // Box ticked? Means: Import Dupes
|
||||
} else {
|
||||
$skipDups=true; // Box not ticked? Means: Skip Dupes, don't import them
|
||||
}
|
||||
$custom_errors = $this->logbook_model->import_bulk($alladif, $this->input->post('station_profile', TRUE), $skipDups, $this->input->post('markClublog'),$this->input->post('markLotw'), $this->input->post('dxccAdif'), $this->input->post('markQrz'), $this->input->post('markEqsl'), $this->input->post('markHrd'), $this->input->post('markDcl'), true, $this->input->post('operatorName') ?? false, false, $this->input->post('skipStationCheck'));
|
||||
} catch (Exception $e) {
|
||||
log_message('error', 'Import error: '.$e->getMessage());
|
||||
$data['page_title'] = __("ADIF Import failed!");
|
||||
|
||||
Reference in New Issue
Block a user