Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making check for 'add' prefix insensitive. Fixes #434

  • Loading branch information...
commit bfbf31e234ffc09725773fb8f235599c42d81766 1 parent 12edc75
@markstory markstory authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  cake/console/templates/default/views/form.ctp
View
3  cake/console/templates/default/views/form.ctp
@@ -45,7 +45,8 @@
<div class="actions">
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
-<?php if ($action != 'add'):?>
+
+<?php if (strpos($action, 'add') === false): ?>
<li><?php echo "<?php echo \$this->Html->link(__('Delete', true), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, sprintf(__('Are you sure you want to delete # %s?', true), \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?></li>
<?php endif;?>
<li><?php echo "<?php echo \$this->Html->link(sprintf(__('List %s', true), __('{$pluralHumanName}', true)), array('action' => 'index'));?>";?></li>
Please sign in to comment.
Something went wrong with that request. Please try again.