From 25d8adbcc64090360eb91a58667c09e0aa7af630 Mon Sep 17 00:00:00 2001 From: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:17:05 +0000 Subject: [PATCH] Add `ignoreRecord` to CopyFrom relationships (#1964) --- app/Filament/Components/Forms/Fields/CopyFrom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Components/Forms/Fields/CopyFrom.php b/app/Filament/Components/Forms/Fields/CopyFrom.php index fa94293fa..cc3aa6215 100644 --- a/app/Filament/Components/Forms/Fields/CopyFrom.php +++ b/app/Filament/Components/Forms/Fields/CopyFrom.php @@ -28,7 +28,7 @@ class CopyFrom extends Select { $this->helperText(trans('admin/egg.copy_from_help')); - $this->relationship('configFrom', 'name'); + $this->relationship('configFrom', 'name', ignoreRecord: true); $this->afterStateUpdated(function ($state, Set $set) { $set('copy_script_from', $state); @@ -52,7 +52,7 @@ class CopyFrom extends Select public function script(): static { - $this->relationship('scriptFrom', 'name'); + $this->relationship('scriptFrom', 'name', ignoreRecord: true); $this->afterStateUpdated(function ($state, Set $set, Component $livewire) { if ($state === null) {