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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user