When using this module on a field in a paragraph entity, the following error appears when saving and validation is supposed to fail:
Notice: Undefined property: ParagraphsItemEntity::$type in EntityReferenceFieldBehaviorUnique->validate() (line 15 of .../sites/all/modules/contrib/entityreference_unique/plugins/behavior/EntityReferenceFieldBehaviorUnique.class.php).
The reason is that the paragraphs entity has no 'type' property for defining the bundle, but instead has a 'bundle' property.
Patch follows.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | entityreference_unique-2729065-3.patch | 1.67 KB | rosk0 |
Comments
Comment #2
fernly commentedThis patch should solve this issue.
Comment #3
rosk0Proper issue fix.