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.

CommentFileSizeAuthor
content_taxonomy_access.patch2.29 KBdrewish

Comments

drewish’s picture

Status: Active » Needs review
mh86’s picture

Do 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

mh86’s picture

Status: Needs review » Fixed

I 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.