Closed (fixed)
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 10:19 UTC
Updated:
27 Feb 2012 at 18:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
amitaibuI'll give it a shot.
Comment #2
amitaibu> We pass $field and $instance to the constructor, but we also pass those to every method.
Let's keep passing the $field and $instance to all the field modules methods , e.g load(), persave(), to keep the function signature consistent. To our own methods, e.g. access() - I've remove them.
Comment #3
damien tournoud commentedBecause we need to pass $field and $instance to the field methods, I would prefer to pass $field and/or $instance to every methods. Any objection?
Comment #4
damien tournoud commentedProposed patch.
Comment #5
damien tournoud commentedI actually pushed this by mistake, but I don't see how it could not work for OG (of course it is a slight API change, but the current behavior is completely broken).
Comment #6
amitaibuLooks good, thanks!