From 16b2016c0e38716de4879b392b8013268992876d Mon Sep 17 00:00:00 2001 From: "noah.lancien" Date: Tue, 11 Apr 2023 15:05:29 +0000 Subject: [PATCH] Fixed status when creating a ticket --- app/Models/Ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Ticket.php b/app/Models/Ticket.php index c5da69d..dba2071 100644 --- a/app/Models/Ticket.php +++ b/app/Models/Ticket.php @@ -63,9 +63,9 @@ class Ticket extends Model protected static function booted() { static::creating(function (Ticket $ticket) { - // If bug force the ticket status on takenInAccount. All the others are estimateTodo. + // If bug force the ticket status on new. All the others are estimateTodo. if ($ticket->type->equals(TicketType::bug())) { - $ticket->status = TicketStatus::takenInAccount(); + $ticket->status = TicketStatus::new(); } else { $ticket->status = TicketStatus::estimateTodo(); }