Skip to content

Instantly share code, notes, and snippets.

@chrisns
Created July 17, 2012 09:35
Show Gist options
  • Save chrisns/3128348 to your computer and use it in GitHub Desktop.
Save chrisns/3128348 to your computer and use it in GitHub Desktop.
select all in patch difference
diff --git i18n.module i18n.module
index e857633..3bbecc4 100644
--- i18n.module
+++ i18n.module
@@ -459,7 +459,7 @@ function i18n_db_rewrite_sql($query, $primary_table, $primary_key, $args = array
if ($mode == 'mixed') {
$result['where'] = i18n_db_rewrite_where($primary_table, 'node', 'simple');
if (i18n_get_lang() != i18n_default_language()) {
- $result['join'] = "LEFT JOIN (SELECT tnid FROM {node} WHERE tnid <> 0 AND language='"
+ $result['join'] = "LEFT JOIN (SELECT * FROM {node} WHERE tnid <> 0 AND language='"
. i18n_get_lang() . "') i18n ON $primary_table.tnid = i18n.tnid";
// We also include nodes that have default language
// and are not translated into current language.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment