Author: sevein
Date: Thu Sep 29 10:46:39 2011
New Revision: 9871
Log:
Fix routing for rightsholder/index, fixes issue 2099
Modified:
trunk/apps/qubit/modules/rightsholder/templates/listSuccess.php
trunk/apps/qubit/modules/staticpage/actions/indexAction.class.php
Modified: trunk/apps/qubit/modules/rightsholder/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/rightsholder/templates/listSuccess.php Thu Sep
29 10:46:03 2011 (r9870)
+++ trunk/apps/qubit/modules/rightsholder/templates/listSuccess.php Thu Sep
29 10:46:39 2011 (r9871)
@@ -21,7 +21,7 @@
<?php foreach ($rightsHolders as $item): ?>
<tr class="<?php echo 0 == @++$row % 2 ? 'even' : 'odd' ?>">
<td>
- <?php echo link_to(render_title($item), $item) ?>
+ <?php echo link_to(render_title($item), array($item, 'module' =>
'rightsholder')) ?>
</td>
</tr>
<?php endforeach; ?>
Modified: trunk/apps/qubit/modules/staticpage/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/staticpage/actions/indexAction.class.php Thu Sep
29 10:46:03 2011 (r9870)
+++ trunk/apps/qubit/modules/staticpage/actions/indexAction.class.php Thu Sep
29 10:46:39 2011 (r9871)
@@ -43,6 +43,11 @@
break;
+ case $this->resource instanceof QubitRightsHolder:
+ $this->forward('rightsholder', 'index');
+
+ break;
+
case $this->resource instanceof QubitUser:
$this->forward('user', 'index');
--
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.