Skip to content

Instantly share code, notes, and snippets.

View jodyHamilton's full-sized avatar

Jody Hamilton jodyHamilton

View GitHub Profile
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.