Author: jablko
Date: Wed Oct 27 18:08:13 2010
New Revision: 8585

Log:
HACK Use id deliberately because "Subjects" and "Places" menus still use id, 
fixes issue 1857

Modified:
   trunk/apps/qubit/modules/taxonomy/actions/browseAction.class.php
   trunk/apps/qubit/modules/term/templates/browseTermSuccess.php

Modified: trunk/apps/qubit/modules/taxonomy/actions/browseAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/taxonomy/actions/browseAction.class.php    Wed Oct 
27 17:57:34 2010        (r8584)
+++ trunk/apps/qubit/modules/taxonomy/actions/browseAction.class.php    Wed Oct 
27 18:08:13 2010        (r8585)
@@ -26,6 +26,8 @@
       $request->limit = sfConfig::get('app_hits_per_page');
     }
 
+    // HACK Use id deliberately, vs. slug, because "Subjects" and "Places"
+    // menus still use id
     $this->resource = QubitTaxonomy::getById($request->id);
     if (!isset($this->resource))
     {

Modified: trunk/apps/qubit/modules/term/templates/browseTermSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/browseTermSuccess.php       Wed Oct 
27 17:57:34 2010        (r8584)
+++ trunk/apps/qubit/modules/term/templates/browseTermSuccess.php       Wed Oct 
27 18:08:13 2010        (r8585)
@@ -59,7 +59,7 @@
 
   <div class="content">
     <ul class="clearfix links">
-      <li><?php echo link_to(__('Browse all %1%', array('%1%' => 
render_title($resource->taxonomy))), array($resource->taxonomy, 'module' => 
'taxonomy', 'action' => 'browse')) ?></li>
+      <li><?php echo link_to(__('Browse all %1%', array('%1%' => 
render_title($resource->taxonomy))), array('module' => 'taxonomy', 'action' => 
'browse', 'id' => $resource->taxonomy->id)) // HACK Use id deliberately because 
"Subjects" and "Places" menus still use id ?></li>
     </ul>
   </div>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to