Download & Extend

Contextual filter does not work when 'Transform dashes in URL to spaces in term name filter values' is selected

Project:Internationalization Views
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

The transformation is applied in the wrong place: i.e. AFTER the term in the original language has been found.
But at that time, the search in the locales_target has already failed because the argument contains the dashes. Furthermore, if the query is successful, then the transform must not be applied another time.

The proposed applies the transform also in the localized search adding a new argument to the function i18nviews_locale_source.
Then, if the search is successful, put the transform flag to false, because we already have the term without the dashes.

See the attached patch.

NOTE: this patch already contains the one proposed in http://drupal.org/node/1786876

AttachmentSize
patch.patch3.13 KB

Comments

#1

The proposed patch contains modifications to the info file. Sorry.

This is the same patch with only the correct files.

AttachmentSize
fixed-1788832-1.patch 2.41 KB

#2

Status:patch (to be ported)» reviewed & tested by the community

Works for me and fixed a problem that was caused me all sorts of bother.