Closed (fixed)
Project:
Require on Publish
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2018 at 00:32 UTC
Updated:
3 Jan 2019 at 02:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alxp commentedComment #3
alxp commentedPatch that does a simple check before accessing a field value in hook_form_alter().
Comment #4
alxp commentedComment #5
alxp commentedTo reproduce:
Enable Require on Publish and Entity Reference Hierarchy (https://www.drupal.org/project/entity_hierarchy)
On Standard Drupal install, go to Admin -> Structure -> Content Types.
Edit Fields of Basic Page, add a new field and mark it as 'Require on Publish.'
Edit fields of Article, add a Entity Reference Hierarchy field and make it point to the Basic Page bundle.
Clear Drupal cache.
Add content items of each type, and select the basic page content item in the Entity Reference Hierarchy field of the article content item.
Go to the Basic Page content item you created, and click on the Children tab.
Comment #6
mpriscella commentedLooks good, thanks! I'll merge it in tonight and create a new release.
Comment #8
mpriscella commented