Closed (fixed)
Project:
Taxonomy Filter
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Jan 2010 at 09:57 UTC
Updated:
11 Feb 2010 at 20:50 UTC
Hello. I catch a bug when filter content by TF block.
Tomorrow I patch the dev code in my site, today got an update,
but nothing new about the bug, as I hope.
I didnt find _taxonomy_filter_filter_link_path($tids, $depth) code in the packadge.
My patch here, hope it clean to find and fix a problem in the Taxonomy Filter code.
Its just a hardcode, I'm not sure about side effects, but it's working.
--- taxonomy_filter_dev/tf_multi/tf_multi.module<------>2010-01-27 20:22:32.979287916 +0200
+++ taxonomy_filter/tf_multi/tf_multi.module<-->2010-01-08 16:11:46.000000000 +0200
@@ -203,8 +203,7 @@
// TODO Make a depth function. This is also done in template_preprocess_taxonomy_filter_item.
$depth = isset($variables['section_info']['section_settings']['depth']) ? $variables['section_info']['section_settings']['depth'] : 0;
$depth = !$depth && isset($variables['block_info']['url_depth']) ? $variables['block_info']['url_depth'] : $depth;
- // $attributes['href'] = _taxonomy_filter_filter_link_path($tids, $depth);
- $attributes['href'] = _taxonomy_filter_format_path($tids, $depth);
+ $attributes['href'] = _taxonomy_filter_filter_link_path($tids, $depth);
.
if ($variables['item']['info']['tf_multi']['selected']) {
$link_text = $settings['subtract_prefix'];
Comments
Comment #1
solotandem commentedThanks for catching this. I failed to commit code intended to be committed on 2010-01-08 related to the default depth parameter change. Fixed in next dev release and 6.x-1.3 release.