diff --git a/app/Filament/Resources/TicketTypeResource/Pages/EditTicketType.php b/app/Filament/Resources/TicketTypeResource/Pages/EditTicketType.php index 177b690b..d4d7bde8 100644 --- a/app/Filament/Resources/TicketTypeResource/Pages/EditTicketType.php +++ b/app/Filament/Resources/TicketTypeResource/Pages/EditTicketType.php @@ -3,7 +3,7 @@ namespace App\Filament\Resources\TicketTypeResource\Pages; use App\Filament\Resources\TicketTypeResource; -use App\Models\TicketStatus; +use App\Models\TicketType; use Filament\Pages\Actions; use Filament\Resources\Pages\EditRecord; @@ -22,7 +22,7 @@ protected function getActions(): array protected function afterSave(): void { if ($this->record->is_default) { - TicketStatus::where('id', '<>', $this->record->id) + TicketType::where('id', '<>', $this->record->id) ->where('is_default', true) ->update(['is_default' => false]); }