Problem/Motivation

The "Submitted to" column is empty when the webform is attached to an entity that does not have an individual route since $source_entity->toLink() is called. In our case it was a Commerce Product Variation.

Proposed resolution

Display the entity label as a fallback.

I attacked a patch that returns $source_entity->label() instead of '' when no canonical link is found.

Comments

Yoran Scholiers created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new791 bytes
jrockowitz’s picture

Status: Needs review » Reviewed & tested by the community

  • jrockowitz committed 8c4470d on 8.x-5.x
    Issue #2996858 by Yoran Scholiers, jrockowitz: Empty "Submitted to"...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

@Yoran Scholiers Thanks for the suggestion and patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.