Skip to content

Commit

Permalink
Fix scaffold delete messages with uuids.
Browse files Browse the repository at this point in the history
Fixes #2826
  • Loading branch information
markstory committed Apr 25, 2012
1 parent 2f87992 commit ef1da31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Controller/Scaffold.php
Expand Up @@ -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
);
Expand Down

0 comments on commit ef1da31

Please sign in to comment.