Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Pointed by plach in #629252-8: field_attach_form() should make available all field translations on submit:
When user has no 'edit access' for a field edits a node and creates a new revision, the field revision data is not properly created.
Attached patch is test that demonstrates the bug (should fail).
Comment | File | Size | Author |
---|---|---|---|
#3 | field_form_fix_access.patch | 17.04 KB | yched |
#1 | field_form_fix_access.patch | 16.99 KB | yched |
field_form_fix_access_FAIL.patch | 6.05 KB | yched | |
Comments
Comment #1
yched CreditAttribution: yched commentedAnd that patch is test + fix (should pass).
Includes the field values as
'#type' => 'value'
elements in the form.Comment #2
sunAwesome.
So this is 90% of CCK field permissions in a core test module? Yay!? X-D
This review is powered by Dreditor.
Comment #3
yched CreditAttribution: yched commentedMinor change, unify the form structures a little more between 'access' and 'no access'.
Comment #4
webchickGood clean-up and even comes with a full suite of delicious tests. Yummy!
Committed to HEAD.