Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 24, 2024
2 parents 16ad712 + 226123b commit 4658d3d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/Domain/Connector/Services/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"])) {
Expand Down

0 comments on commit 4658d3d

Please sign in to comment.