From 78bc71d2ca63ec148f50768240e25f47c0802497 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 8 May 2023 20:59:53 +0200 Subject: [PATCH] =?UTF-8?q?Beim=20Excel-Import=20PAS=20wird=20CountryOfBir?= =?UTF-8?q?th=20nur=20dumm=20gelesen,=20ohne=20Nationalit=C3=A4ten=20?= =?UTF-8?q?=C3=9Cberpr=C3=BCfung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENI2/Excel/ExcelUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ENI2/Excel/ExcelUtil.cs b/ENI2/Excel/ExcelUtil.cs index e75aee3d..a64f6895 100644 --- a/ENI2/Excel/ExcelUtil.cs +++ b/ENI2/Excel/ExcelUtil.cs @@ -2333,7 +2333,8 @@ namespace ENI2.Excel pas.PassengerInTransit = reader.ReadCellAsBool(sheetTitle, string.Format("H{0}", i + 17)); pas.PassengerPlaceOfBirth = reader.ReadCellAsText(sheetTitle, string.Format("J{0}", i + 17)); - pas.PassengerCountryOfBirth = ReadNationality(reader.ReadCellAsText(sheetTitle, string.Format("K{0}", i + 17)), out canceled); + pas.PassengerCountryOfBirth = reader.ReadCellAsText(sheetTitle, string.Format("K{0}", i + 17)); + if (canceled) return true; DateTime? dateOfBirth = reader.ReadCellAsDateTime(sheetTitle, string.Format("L{0}", i + 17)); pas.PassengerDateOfBirth = dateOfBirth;