From dfc5b9fe4a7d066aee4baba7355a37195e4273ac Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 1 May 2022 16:01:57 +0300 Subject: [PATCH] feat(entries): check if the original entry exists. --- src/flextype/core/Entries/Entries.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/flextype/core/Entries/Entries.php b/src/flextype/core/Entries/Entries.php index fcb092fb..54ea3d5a 100755 --- a/src/flextype/core/Entries/Entries.php +++ b/src/flextype/core/Entries/Entries.php @@ -490,6 +490,11 @@ class Entries return $this->registry()->get('methods.move.result'); } + // Check if the original entry exists. + if (! $this->has($this->registry()->get('methods.move.params.id'))) { + return false; + } + // Do move. if (! $this->has($this->registry()->get('methods.move.params.newID'))) { return filesystem()