diff --git a/src/Fieldtypes/BaseFieldtype.php b/src/Fieldtypes/BaseFieldtype.php index 5e0f3e34..7ff135da 100644 --- a/src/Fieldtypes/BaseFieldtype.php +++ b/src/Fieldtypes/BaseFieldtype.php @@ -114,7 +114,7 @@ public function preload() private function getUnlinkBehavior(): string { - if ($this instanceof BelongsToFieldtype) { + if ($this instanceof BelongsToFieldtype || !$this->field->parent()) { return 'unlink'; }