Author: david
Date: Tue Aug 11 10:58:57 2009
New Revision: 2995
Log:
Don't show root object as a broad term on term show page.
Modified:
trunk/apps/qubit/modules/term/templates/showSuccess.php
Modified: trunk/apps/qubit/modules/term/templates/showSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/showSuccess.php Tue Aug 11
10:54:14 2009 (r2994)
+++ trunk/apps/qubit/modules/term/templates/showSuccess.php Tue Aug 11
10:58:57 2009 (r2995)
@@ -64,7 +64,8 @@
<tr>
<th><?php echo __('Hierarchical terms'); ?></th>
<td>
- <?php if(null !== ($parent = $term->getParent())): ?>
+ <?php if(QubitTerm::ROOT_ID != $term->parentId): ?>
+ <?php $parent = $term->getParent() ?>
<dl>
<dt><?php echo strtoupper($term->getName(array('cultureFallback' =>
'true'))) ?></dt>
<dd>
@@ -153,4 +154,4 @@
<li><?php echo link_to (__('Edit'), array('module' => 'term', 'action' =>
'edit', 'id' => $term->id)) ?></li>
<?php endif; ?>
<li><?php echo link_to(__('List'), array('module' => 'term', 'action' =>
'list', 'taxonomyId' => $term->taxonomyId)) ?></li>
-</ul>
\ No newline at end of file
+</ul>
--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---