We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6e8d89 commit 344dc53Copy full SHA for 344dc53
app/Filament/Resources/TicketTypeResource/Pages/EditTicketType.php
@@ -3,7 +3,7 @@
3
namespace App\Filament\Resources\TicketTypeResource\Pages;
4
5
use App\Filament\Resources\TicketTypeResource;
6
-use App\Models\TicketStatus;
+use App\Models\TicketType;
7
use Filament\Pages\Actions;
8
use Filament\Resources\Pages\EditRecord;
9
@@ -22,7 +22,7 @@ protected function getActions(): array
22
protected function afterSave(): void
23
{
24
if ($this->record->is_default) {
25
- TicketStatus::where('id', '<>', $this->record->id)
+ TicketType::where('id', '<>', $this->record->id)
26
->where('is_default', true)
27
->update(['is_default' => false]);
28
}
0 commit comments