- ðšðŠCanada jdhildeb
I've updated the patch from #6 for compatibility with Drupal 9.5. It solves the first use case in the issue description.
On current dev branch referencing new entity fails when entity is unpublished by default.
Steps to reproduce on simplytest.me:
The new Foo is created but not the Article. It fails with message "This entity (node: %label) cannot be referenced.".
This error does NOT occure when:
AND it also fails with the same message when choosing reference method Views: Filter by an entity reference view, no matter what publishing options for Foo is set.
Steps to reproduce on simplytest.me like above but:
In this case the referenced entity validation seems to fail because the selection handler is not an instance of SelectionWithAutocreateInterface (see ValidReferenceConstraintValidator line 100: "If the selection handler does not support referencing newly created entities, all of them should be invalidated.").
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I've updated the patch from #6 for compatibility with Drupal 9.5. It solves the first use case in the issue description.