Skip to content

Commit

Permalink
fix: ensure date attribute in tickets table gets updated when updatin…
Browse files Browse the repository at this point in the history
…g ticket
  • Loading branch information
kylemcshea committed Jul 10, 2024
1 parent 5cddaca commit 4329be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Domain/Tickets/Repositories/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ public function simpleTicketQuery(?int $userId, ?int $projectId): array|false
$stmn->closeCursor();

return $values;

}

public function getScheduledTasks(CarbonImmutable $dateFrom, CarbonImmutable $dateTo, ?int $userId = null)
Expand Down Expand Up @@ -1792,6 +1791,7 @@ public function updateTicket(array $values, $id): bool
description=:description,
projectId=:projectId,
status = :status,
date = :date,
dateToFinish = :dateToFinish,
sprint = :sprint,
storypoints = :storypoints,
Expand All @@ -1814,6 +1814,7 @@ public function updateTicket(array $values, $id): bool
$stmn->bindValue(':description', $values['description'], PDO::PARAM_STR);
$stmn->bindValue(':projectId', $values['projectId'], PDO::PARAM_STR);
$stmn->bindValue(':status', $values['status'], PDO::PARAM_STR);
$stmn->bindValue(':date', $values['date'], PDO::PARAM_STR);
$stmn->bindValue(':dateToFinish', $values['dateToFinish'], PDO::PARAM_STR);
$stmn->bindValue(':sprint', $values['sprint'], PDO::PARAM_STR);
$stmn->bindValue(':storypoints', $values['storypoints'], PDO::PARAM_STR);
Expand Down Expand Up @@ -2064,5 +2065,4 @@ public function delMilestone($id): bool
return true;
}
}

}

0 comments on commit 4329be5

Please sign in to comment.