Entity lookup fails if passed in ids are integers

Created on 3 March 2022, over 3 years ago
Updated 8 July 2025, 3 months ago

Problem/Motivation

If a single/multiple integers are passed to entity_lookup, with as value key an id field, no results are returned even though the entities with those ids exist. This happens because the input values are integers, the query results are strings and the plugin strictly compares the input and output values.

Proposed resolution

Do a loose comparison instead of strict.

🐛 Bug report
Status

Closed: works as designed

Version

6.0

Component

API

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024