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.
After updating to 7.x-1.3, I get the following error when viewing content types that use this module:
Notice: Undefined index: module in field_default_prepare_view() (line 151 of [...]/modules/field/field.default.inc).
This is occurring because field_tokens_field_display_alter()
sets all the fields to visible without adding the module to the array.
Comment | File | Size | Author |
---|---|---|---|
#5 | module_undefined-2543548-5.patch | 825 bytes | jesss |
#1 | module_undefined-2543548-1.patch | 654 bytes | jesss |
Comments
Comment #1
jesss CreditAttribution: jesss commentedPatch attached.
Comment #2
Deciphered CreditAttribution: Deciphered commentedHi jesss,
Seems legitimate, but could you provide reproduction steps, as I haven't seen that issue come up? I'd like to confirm the issue and fix before committing the patch.
Comment #4
Deciphered CreditAttribution: Deciphered commentedPatch seems to have been created incorrectly. Refer to the instructions at https://www.drupal.org/project/field_tokens/git-instructions (Creating a patch).
Comment #5
jesss CreditAttribution: jesss commentedI'm using Field Tokens in conjunction with WYSIWYG Fields (it's a dependency). To recreate:
I've re-rolled the patch against 7.x-1.x-dev.
Comment #6
Deciphered CreditAttribution: Deciphered commentedComment #8
Deciphered CreditAttribution: Deciphered commentedPatch is still created incorrectly and won't apply, however if you are having trouble I will re-roll myself once I re-produce the issue.
Comment #9
Deciphered CreditAttribution: Deciphered commentedThanks for the reproduction steps, it's definitely an issue and I will get the fix committed ASAP.
Comment #11
Deciphered CreditAttribution: Deciphered commentedFixed and committed, and a Test implemented for specified usecase.
Thanks for the bug report.