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

CommentFileSizeAuthor
#1 views-1543476-1.patch794 bytesmarcoka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcoka’s picture

FileSize
794 bytes

Here 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.

itz_andr3’s picture

this works nice, my saved T&C language shows and error gone

thx

dawehner’s picture

Status: Active » Reviewed & tested by the community

The change looks perfect.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! I just applied and pushed it

Status: Fixed » Closed (fixed)

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