mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-08 18:30:15 +01:00
Add ignoreRecord to CopyFrom relationships (#1964)
This commit is contained in:
parent
27b896c6d2
commit
25d8adbcc6
@ -28,7 +28,7 @@ class CopyFrom extends Select
|
|||||||
{
|
{
|
||||||
$this->helperText(trans('admin/egg.copy_from_help'));
|
$this->helperText(trans('admin/egg.copy_from_help'));
|
||||||
|
|
||||||
$this->relationship('configFrom', 'name');
|
$this->relationship('configFrom', 'name', ignoreRecord: true);
|
||||||
|
|
||||||
$this->afterStateUpdated(function ($state, Set $set) {
|
$this->afterStateUpdated(function ($state, Set $set) {
|
||||||
$set('copy_script_from', $state);
|
$set('copy_script_from', $state);
|
||||||
@ -52,7 +52,7 @@ class CopyFrom extends Select
|
|||||||
|
|
||||||
public function script(): static
|
public function script(): static
|
||||||
{
|
{
|
||||||
$this->relationship('scriptFrom', 'name');
|
$this->relationship('scriptFrom', 'name', ignoreRecord: true);
|
||||||
|
|
||||||
$this->afterStateUpdated(function ($state, Set $set, Component $livewire) {
|
$this->afterStateUpdated(function ($state, Set $set, Component $livewire) {
|
||||||
if ($state === null) {
|
if ($state === null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user