Author: sevein
Date: Tue Feb 14 10:11:27 2012
New Revision: 10883
Log:
Pass actor object to link_to when linking to authority recors from the search
results. Fixes issue 2249.
Modified:
trunk/apps/qubit/modules/search/templates/_searchResults.php
Modified: trunk/apps/qubit/modules/search/templates/_searchResults.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/_searchResults.php Tue Feb
14 00:03:18 2012 (r10882)
+++ trunk/apps/qubit/modules/search/templates/_searchResults.php Tue Feb
14 10:11:27 2012 (r10883)
@@ -53,8 +53,8 @@
<?php echo $date['rendered'] ?> (<?php echo $date['type'] ?>)
- <?php if (isset($date['actor'])): ?>
- <?php echo link_to($date['actor'], array($date['actor'],
'module' => 'actor')) ?>
+ <?php if (isset($date['actor']) && null !== $event =
QubitEvent::getById($date['id'])): ?>
+ <?php echo link_to($date['actor'], array($event->actor,
'module' => 'actor')) ?>
<?php endif; ?>
</li>
--
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.