Needs work
Project:
References
Version:
7.x-2.x-dev
Component:
Code: user_reference
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2011 at 15:30 UTC
Updated:
2 Feb 2011 at 09:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
JulienD commentedHere's a .patch file to solve the fact that no results are returned in the user_reference field when no roles are selected in the field settings.
I just used a "array_filter" on the field user_reference to exclude empty results.
Comment #2
fgmWith the patch in #1, $roles is being assigned twice in a row without change: the first assignment is therefore useless.
And it does not apply because you rolled it in references/node_reference instead of references/
Comment #3
JulienD commentedI updated my patch to allow it to be applied from the root of the module and I removed the first declaration of $roles as suggested in #2.
Comment #4
fgmYou don't really want to leave a dpq() in the patch, do you ? ;-)
Comment #5
JulienD commentedEven if the dpq() is really useful, I agree this function should not be there. My cold has a bad impact on my attention. Sorry
Comment #6
JulienD commentedComment #7
fgmCool, now can we have a test with that ?