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.
What error happens
Example: http://drupal.org/node/1393368
Outputting stuff like:
Notice: Undefined variable: options in views_handler_field_locale_language->render() (line 25 of /modules/views/modules/locale/views_handler_field_locale_language.inc).
Notice: Trying to get property of non-object in views_handler_field_locale_language->render() (line 27 of /modules/views/modules/locale/views_handler_field_locale_language.inc).
Notice: Undefined variable: options in views_handler_field_locale_language->render() (line 25 of /modules/views/modules/locale/views_handler_field_locale_language.inc).
Notice: Trying to get property of non-object in views_handler_field_locale_language->render() (line 27 of /modules/views/modules/locale/views_handler_field_locale_language.inc).
Why
Wrong access to $languages array and wrong access on $this->options
http://www.root.artwaves.de/screensnapr/1335199136-Ibusva.jpg
Comment | File | Size | Author |
---|---|---|---|
#1 | views-1543476-1.patch | 794 bytes | marcoka |
Comments
Comment #1
marcoka CreditAttribution: marcoka commentedHere is the patch.
This is related to #1515156: Expose the field language column for translatable fields where fabsor included this fix inside the patch of that feature request, but also mentioned that we should make a different issue about that. Thats why i did this issue.
Comment #2
itz_andr3 CreditAttribution: itz_andr3 commentedthis works nice, my saved T&C language shows and error gone
thx
Comment #3
dawehnerThe change looks perfect.
Comment #4
dawehnerThanks! I just applied and pushed it