Problem/Motivation

When viewing an entity with a name, the module seems to be choking on an _attributes array property in isEmpty()

Steps to reproduce

View an entity with an empty name.

Proposed resolution

Add value transformer for arrays.

CommentFileSizeAuthor
#2 3293868-type-error-2.patch661 bytesmrweiner

Comments

mrweiner created an issue. See original summary.

mrweiner’s picture

Status: Active » Needs review
StatusFileSize
new661 bytes

Patch checks for an empty array and assigns the $value to null. If the array does contain values, then it chooses the first one. May not be ideal as I'm not sure of the internals, but at least gets me past the error.

webflo’s picture

Status: Needs review » Fixed

Unfortunately, I can no longer reproduce this after the last patches. Please re-open if this still applies. Thanks!

Status: Fixed » Closed (fixed)

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