From 1dd6f6f6a2f20da376fa2e8a8f696a1f1a2ad671 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 21 Feb 2012 12:25:02 -0400 Subject: [PATCH] Fix top menu navigation children_view_regex matching typo --- apps/navigation/templatetags/navigation_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/navigation/templatetags/navigation_tags.py b/apps/navigation/templatetags/navigation_tags.py index b7f8f8550f..f3b989a511 100644 --- a/apps/navigation/templatetags/navigation_tags.py +++ b/apps/navigation/templatetags/navigation_tags.py @@ -38,7 +38,7 @@ class TopMenuNavigationNode(Node): menu_links[index]['active'] = True for children_view_regex in link.get('children_view_regex', []): - if re.compile(children_view_regex).match(children_view_regex): + if re.compile(children_view_regex).match(current_view): menu_links[index]['active'] = True context['menu_links'] = menu_links