Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
fieldapi data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2012 at 18:21 UTC
Updated:
7 Mar 2012 at 11:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
das-peter commentedI just thought about the
locale_field_language_fallbacksetting.If the setting is enabled
locale_field_language_alter()useslocale_field_language_fallback()to find the most appropriate language for the field content.This is done by iterating over the language list returned by
language_fallback_get_candidates()which returns the first matching value.Currently I just assume that SQL will also return the value of the first matching language in the fallback list - if this correct, the patch could look like this: http://drupalbin.com/20809
Comment #2
dawehnerIf sql doesn't behave like that we are doomed anyway.
The patch in the pastebin looks fine.
Comment #3
das-peter commentedHere we go that's the patch for the pastebin code.
Comment #4
dawehnerThis changes are fine as written above. Committed to 7.x-3.x, let's see whether everything is broken :)
Thanks for writing the patch!
Comment #5
3rdLOF commentedIs this issue in any way connected to this: http://drupal.org/node/1450268 ?
Fatal error: Call to undefined function language_fallback_get_candidates() in modules/views/modules/field/views_handler_field_field.inc on line 210
Getting this after turning aggregation on.