1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 05:07:41 +02:00

feat(entries): check if the original entry exists.

This commit is contained in:
Awilum
2022-05-01 16:01:57 +03:00
parent 670af92c86
commit dfc5b9fe4a

View File

@@ -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()