User is undefined
(FK) with inconsistent behaviour
#24037
Labels
bug
Something isn't working
needs-analysis
Issue status is unknown and/or not possible to triage with the current info
Bug report
I have a table row
inventory_product
and one of the columns isuser_id
(FK to user table).As you can see from the images below, it's pretty simple and straightforward:
This is the data from
user
table:This is the
inventory_product
with FK to that user:However, when I try to print the
name
,email
, andid
of the user who created the row, they all return toundefined
:This is weird because you can see it's not undefined on the DB.
Describe the bug
I have a table with rows; one of them is
user_id
, which is an FK touser
table.Some rows work as expected, I can see the
name
,email
,id
as expected. However, some rows just showundefined
even when there's a user attached to it.To Reproduce
I cannot reproduce this. I have debugged the problem locally, and all user data returned properly. Therefore, I am very confused why on production, the user
name
,email
, andid
areundefined
when there is clearly a user attached to the row.Expected behavior
I should be able to see the user
name
,email
,id
as expected.System information
The text was updated successfully, but these errors were encountered: