Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/FieldCollectionItemAccessControlHandler.php b/src/FieldCollectionItemAccessControlHandler.php
index 4c79e3d..41339d8 100644
--- a/src/FieldCollectionItemAccessControlHandler.php
+++ b/src/FieldCollectionItemAccessControlHandler.php
@@ -23,9 +23,13 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
}
// Here we will be if host entity was not set and entity is not new.
elseif (!$entity->isNew()) {
+ // Applications that were migrated throw errors on first save though
+ // the ui. This is a temporary work around for that.
+ /**
throw new \RuntimeException($this->t('Host entity for field collection item (@id) was not set.', [
'@id' => $entity->id(),
]));
+ */
}
}
Bypass error when saving migrated application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.