Commit a7c772f0 authored by gcb's avatar gcb Committed by Ra Mänd
Browse files

Issue #2070159 by neddstark, lachezar.valchev, gcb: On unpublished nodes, when...

Issue #2070159 by neddstark, lachezar.valchev, gcb: On unpublished nodes, when saving, it throws a fatal error: Unable to save a field collection item without a valid reference
parent ead60264
......@@ -307,6 +307,7 @@ class FieldCollectionItemEntity extends Entity {
// right host entity.
$query = new EntityFieldQuery();
$query->fieldCondition($this->fieldInfo(), 'revision_id', $this->revision_id);
$query->addTag('DANGEROUS_ACCESS_CHECK_OPT_OUT');
if (!$this->isInUse()) {
$query->age(FIELD_LOAD_REVISION);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment