Closed (fixed)
Project:
Entityreference prepopulate [D7]
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 May 2013 at 07:52 UTC
Updated:
20 Jun 2013 at 05:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
amitaibuComment #2
amitaibuCommitted.
Comment #3
rbrandon commentedThe above patch breaks node creation when hiding fields.
Not sure if this is the correct longterm solution but this fixes the issue in both scenarios.
-RB
Comment #4
amitaibu> The above patch breaks node creation when hiding fields.
I wasn't able to reproduce on a clean installation, what are the steps?
I'm not clear about this fix, as we are already inside
if ($id)which means this entity is already saved.Comment #5
amitaibu@rbrandon, I understand now your patch, sorry - I've tested it with admin user, so field_access() didn't kick in.
Here's a patch to fix the issue, we'll add a test as-well as follow-up.
Comment #6
amitaibuCommitted. The tests would be in another issue.