From f25fb6f87ebc2747887438468f488d92550d15fc Mon Sep 17 00:00:00 2001 From: Dave Roverts Date: Sun, 31 Jul 2022 16:20:26 +0200 Subject: [PATCH] fix(FlightInformationRegionResource): ignore current record identifier Closes #214 --- app/Filament/Resources/FlightInformationRegionResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Resources/FlightInformationRegionResource.php b/app/Filament/Resources/FlightInformationRegionResource.php index 9603d1ed..7088f122 100644 --- a/app/Filament/Resources/FlightInformationRegionResource.php +++ b/app/Filament/Resources/FlightInformationRegionResource.php @@ -38,7 +38,7 @@ public static function form(Form $form): Form ->schema([ Forms\Components\TextInput::make('identifier') ->required() - ->unique() + ->unique(ignoreRecord: true) ->length(4), Forms\Components\TextInput::make('name') ->required()