Author: sevein
Date: Mon Oct  3 16:48:47 2011
New Revision: 9908

Log:
Don't show delete button if node does not exist

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

Modified: trunk/apps/qubit/modules/menu/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/menu/templates/editSuccess.php     Mon Oct  3 
16:45:00 2011        (r9907)
+++ trunk/apps/qubit/modules/menu/templates/editSuccess.php     Mon Oct  3 
16:48:47 2011        (r9908)
@@ -51,7 +51,7 @@
 
         <li><?php echo link_to(__('Cancel'), array('module' => 'menu', 
'action' => 'list')) ?></li>
 
-        <?php if (!$menu->isProtected()): ?>
+        <?php if (!$menu->isProtected() && isset($menu->id)): ?>
           <li><?php echo link_to(__('Delete'), array($menu, 'module' => 
'menu', 'action' => 'delete'), array('class' => 'delete')) ?></li>
         <?php endif; ?>
 

-- 
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.

Reply via email to