From 7c4e93c3eb52e0e7277888b8a892ce16c2ff7231 Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Sat, 24 Aug 2024 02:01:57 -0400 Subject: [PATCH] Update Connector.php --- app/Domain/Connector/Services/Connector.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Domain/Connector/Services/Connector.php b/app/Domain/Connector/Services/Connector.php index 30433a911..47981464c 100644 --- a/app/Domain/Connector/Services/Connector.php +++ b/app/Domain/Connector/Services/Connector.php @@ -597,14 +597,12 @@ private function importTickets($finalMappings, $finalValues) foreach ($finalValues as $row) { $ticket = array(); - array_change_key_case($row, CASE_LOWER); - for ($i = 0; $i < sizeof($finalMappings); $i = $i + 2) { $ticket[$finalMappings[$i + 1]] = $row[$finalMappings[$i]]; } - $ticket['editorId'] = $row['editorid']; - $ticket['projectId'] = $row['projectid']; - $ticket['status'] = $row['status']; + $ticket['editorId'] = $row['editorId'] ?? ''; + $ticket['projectId'] = $row['projectId'] ?? ''; + $ticket['status'] = $row['status'] ?? 3; $ticket['type'] = $row['type'] ?? 'task'; if (isset($ticket["id"]) && is_numeric($ticket["id"])) {