I'm attaching a test for the issue #2007746: use hook_field_access() to hide fields of exiting entities. In the test i'm change the prepopoulate settings every time and saving the node and verify the reference remained.
Do we need to the check the fallback behavior? i'm just checking how to action settings effects on the node when saving him.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | hook-field-access-test-2026225-7.patch | 5.74 KB | roysegall |
| #5 | hook-field-access-test-2026225-5.patch | 5.77 KB | roysegall |
| #4 | hook-field-access-test-2026225-4.patch | 4.76 KB | roysegall |
| hook-field-access-test.patch | 3.78 KB | roysegall |
Comments
Comment #2
amitaibu=> Prepopulate
Enable entityreference_prepopulate
Remove.
Remove.
Comment #3
amitaibuAnd add the actual prepopulate test.
Comment #4
roysegall commentedAttaching a patch with the fixes.
Comment #5
roysegall commentedAdding more scenarios when creating the node.
Comment #7
roysegall commentedComment #8
amitaibuCommitted, thanks!