I've got a couple of fields that reference a free tagging vocabulary and they're hidden from some uses with the #access property. I'm not quite sure what changed but in the last week but now users with the fields hidden end up clearing the values when they save the nodes. The attached patch adds some extra workaround code to get the value through.
| Comment | File | Size | Author |
|---|---|---|---|
| content_taxonomy_access.patch | 2.29 KB | drewish |
Comments
Comment #1
drewish commentedComment #2
mh86 commentedDo you know if nodereference and userreference are working with the #access property?
They are similar to the content taxonomy autocomplete, so maybe we can take a look how they solved the problem. Patch looks a bit complicated, so maybe we find a simpler way
Comment #3
mh86 commentedI committed the patch slightly simplified (diff).
Because of the fix in http://drupal.org/node/309979 (Preview / Diff) the field array looks the same in preview and submit and this makes the handling of the values a bit easier.
Thanks for your help!