Author: david
Date: Wed Sep  2 13:03:51 2009
New Revision: 3147

Log:
Return to taxonomy term list when cancelling the creation of a new term.  Fixes 
issue #885.

Modified:
   trunk/apps/qubit/modules/term/templates/editSuccess.php

Modified: trunk/apps/qubit/modules/term/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/editSuccess.php     Wed Sep  2 
12:53:15 2009        (r3146)
+++ trunk/apps/qubit/modules/term/templates/editSuccess.php     Wed Sep  2 
13:03:51 2009        (r3147)
@@ -161,11 +161,12 @@
     ?>
     &nbsp;<?php echo link_to(__('delete'), array('module' => 'term', 'action' 
=> 'delete', 'id' => $term->getId()), array('post' => true, 'confirm' => 
$confirmString)) ?>
   <?php endif; ?>
-  <?php echo link_to(__('cancel'), array('module' => 'term', 'action' => 
'show', 'id' => $term->id)) ?>
 
   <?php if ($term->getId()): ?>
+    <?php echo link_to(__('cancel'), array('module' => 'term', 'action' => 
'show', 'id' => $term->id)) ?>
     <?php echo submit_tag(__('save')) ?>
   <?php else: ?>
+    <?php echo link_to(__('cancel'), array('module' => 'term', 'action' => 
'list', 'taxonomyId' => $term->taxonomyId)) ?>
     <?php echo submit_tag(__('create')) ?>
   <?php endif; ?>
   </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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to