Skip to content

Commit

Permalink
Merge pull request #1398 from VATSIM-UK/stand-history-soft-deletes
Browse files Browse the repository at this point in the history
fix: show soft deleted stand assignments and sort
  • Loading branch information
AndyTWF authored Sep 13, 2023
2 parents 37b3cf1 + 12e374a commit a98522f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Filament/Resources/StandAssignmentsHistoryResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ class StandAssignmentsHistoryResource extends Resource

public static function getEloquentQuery(): Builder
{
return StandAssignmentsHistory::with('stand', 'stand.airfield');
return StandAssignmentsHistory::with('stand', 'stand.airfield')
->withoutGlobalScopes([
SoftDeletingScope::class,
]);
}

public static function canGloballySearch(): bool
Expand Down Expand Up @@ -101,6 +104,7 @@ public static function table(Table $table): Table
TextColumn::make('type')
->label(static::translateTablePath('columns.type')),
])
->defaultSort('id', 'desc')
->actions([
ViewAction::make('view_context')
->label('View Context')
Expand Down

0 comments on commit a98522f

Please sign in to comment.