From 23130ee5bd15c852ef39a815367f5bc1cc4338ec Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 16 Oct 2023 09:34:29 +0200 Subject: [PATCH] We should not lie about dupes on the success page ... --- application/controllers/Adif.php | 1 + application/views/adif/import_success.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/application/controllers/Adif.php b/application/controllers/Adif.php index 5adbcbde..b8464d8f 100644 --- a/application/controllers/Adif.php +++ b/application/controllers/Adif.php @@ -211,6 +211,7 @@ class adif extends CI_Controller { } $data['adif_errors'] = $custom_errors; + $data['skip_dupes'] = $this->input->post('skipDuplicate'); $data['page_title'] = "ADIF Imported"; diff --git a/application/views/adif/import_success.php b/application/views/adif/import_success.php index e6909a43..6c3b8c9e 100644 --- a/application/views/adif/import_success.php +++ b/application/views/adif/import_success.php @@ -13,7 +13,13 @@

Yay, its imported!

-

The ADIF File has been imported, and any dupes skipped.

+

The ADIF File has been imported. + Dupes were inserted!'; + } else { + echo ' Dupes were skipped.'; + } ?> +

ADIF Errors

You have ADIF errors, the QSOs have still been added but these fields have not been populated.