Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sorry can't think of a neater title. If I now understand it correctly: if you have a 'yamlform' field reference on an entity to a form, you don't need to check the 'allow every entity to be the source entity box', because it should check to see if there is a referring field on the source entity.
However, it checks for the field by name 'yamlform', and not for a field of type 'yamlform', so any field added with the name field_xyz doesn't count.
Code is probably clearer, so patch to explain, follows in a second.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2795307-1-3.txt | 2.32 KB | jrockowitz |
#3 | yamlform_field-2795307-3.patch | 2.08 KB | jrockowitz |
#2 | 2795307-01.source_entity_has_yamlform_field.patch | 2.13 KB | ekes |
Comments
Comment #2
ekes CreditAttribution: ekes as a volunteer commentedComment #3
jrockowitz CreditAttribution: jrockowitz commentedCode makes sense but I made a few tweaks...
Lets see if my patch passes
Comment #5
jrockowitz CreditAttribution: jrockowitz commentedPlease checkout 8.x-1.x or download the latest dev release to test.