Author: sevein
Date: Wed Aug 22 08:21:59 2012
New Revision: 12160
Log:
If roobObject is not defined, show back button instead
Modified:
trunk/apps/qubit/modules/object/templates/importSuccess.php
Modified: trunk/apps/qubit/modules/object/templates/importSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/object/templates/importSuccess.php Wed Aug 22
08:20:53 2012 (r12159)
+++ trunk/apps/qubit/modules/object/templates/importSuccess.php Wed Aug 22
08:21:59 2012 (r12160)
@@ -21,11 +21,15 @@
<div class="content">
<ul class="clearfix links">
- <?php if (!($rootObject instanceof QubitTaxonomy)): ?>
- <?php echo link_to(__('View %1%', array('%1%' =>
sfConfig::get('app_ui_label_'.strtolower($objectType)))), array($rootObject,
'module' => strtolower($objectType))) ?>
- <?php else: ?>
- <?php echo link_to(__('View %1%', array('%1%' =>
sfConfig::get('app_ui_label_'.strtolower($objectType)))), array($rootObject,
'module' => 'taxonomy')) ?>
- <?php endif; ?>
+ <?php if (isset($rootObject)): ?>
+ <?php if (!($rootObject instanceof QubitTaxonomy)): ?>
+ <?php echo link_to(__('View %1%', array('%1%' =>
sfConfig::get('app_ui_label_'.strtolower($objectType)))), array($rootObject,
'module' => strtolower($objectType))) ?>
+ <?php else: ?>
+ <?php echo link_to(__('View %1%', array('%1%' =>
sfConfig::get('app_ui_label_'.strtolower($objectType)))), array($rootObject,
'module' => 'taxonomy')) ?>
+ <?php endif; ?>
+ <?php else: ?>
+ <?php echo link_to(__('Back'), array('module' => 'object', 'action' =>
'importSelect')) ?>
+ <?php endif; ?>
</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.