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.
Error on service_links.module file
When the function service_links_show($node)
validate if to display the service links.
When the field_tags
is an entity reference field an error accrues it expects the field to be only term reference field.
This is the error:
Notice: Undefined index: tid in service_links_show() (line 883 of /home/itamar/w/praise/praise/modules/contrib/service_links/service_links.module).
Comment | File | Size | Author |
---|---|---|---|
#5 | service_links-field-tags-as-entity-reference-field-2282383-5.patch | 756 bytes | mibfire |
#1 | 2282383-field-tags-as-entity-reference-field-1.patch | 610 bytes | yaronmiro |
Comments
Comment #1
yaronmiro CreditAttribution: yaronmiro commentedApplying a patch to resolve the
field_tags
as entity ref field issue.Comment #2
Jeroen_005 CreditAttribution: Jeroen_005 at Pàu for Colruyt Group Services commented#1 Works fine for me. Since it's so simple, maybe we can commit this one?
Comment #3
Jeroen_005 CreditAttribution: Jeroen_005 at Pàu for Colruyt Group Services commentedComment #4
nico.knaepen CreditAttribution: nico.knaepen at Logic in Motion for Colruyt Group Services commentedComment #5
mibfire CreditAttribution: mibfire commentedIn some case the target_id is not set either.
Comment #6
Agileware CreditAttribution: Agileware commentedPatch #5 looks good and works for me.
Comment #8
Simon Georges CreditAttribution: Simon Georges at Makina Corpus commentedCommitted, thanks!