Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix scaffold delete messages with uuids.

Fixes #2826
  • Loading branch information...
commit ef1da3146eb5947d0fd25a28b5094b86b251693b 1 parent 2f87992
Mark Story markstory authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Scaffold.php
4 lib/Cake/Controller/Scaffold.php
View
@@ -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
);
Please sign in to comment.
Something went wrong with that request. Please try again.