Permalink
Browse files

Fix scaffold delete messages with uuids.

Fixes #2826
  • Loading branch information...
1 parent 2f87992 commit ef1da3146eb5947d0fd25a28b5094b86b251693b @markstory markstory committed Apr 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Scaffold.php
@@ -305,11 +305,11 @@ protected function _scaffoldDelete(CakeRequest $request) {
throw new NotFoundException(__d('cake', 'Invalid %s', Inflector::humanize($this->modelClass)));
}
if ($this->ScaffoldModel->delete()) {
- $message = __d('cake', 'The %1$s with id: %2$d has been deleted.', Inflector::humanize($this->modelClass), $id);
+ $message = __d('cake', 'The %1$s with id: %2$s has been deleted.', Inflector::humanize($this->modelClass), $id);
return $this->_sendMessage($message);
} else {
$message = __d('cake',
- 'There was an error deleting the %1$s with id: %2$d',
+ 'There was an error deleting the %1$s with id: %2$s',
Inflector::humanize($this->modelClass),
$id
);

0 comments on commit ef1da31

Please sign in to comment.