You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->controller->flash(sprintf(__("No id set for %s::delete()", true), Inflector::humanize($this->modelKey)),'/' . Inflector::underscore($this->controller->viewPath));
341
+
return$this->_output();
341
342
}
342
343
343
344
if ($this->ScaffoldModel->del($id)) {
344
345
if (isset($this->controller->Session) && $this->controller->Session->valid() != false) {
345
346
$this->controller->Session->setFlash(sprintf(__('The %1$s with id: %2$d has been deleted.', true), Inflector::humanize($this->modelClass), $id));
346
347
$this->controller->redirect($this->redirect);
347
348
} else {
348
-
return$this->controller->flash(sprintf(__('The %1$s with id: %2$d has been deleted.', true), Inflector::humanize($this->modelClass), $id), '/' . $this->viewPath);
349
+
$this->controller->flash(sprintf(__('The %1$s with id: %2$d has been deleted.', true), Inflector::humanize($this->modelClass), $id), '/' . $this->viewPath);
350
+
return$this->_output();
349
351
}
350
352
} else {
351
353
if (isset($this->controller->Session) && $this->controller->Session->valid() != false) {
352
354
$this->controller->Session->setFlash(sprintf(__('There was an error deleting the %1$s with id: %2$d', true), Inflector::humanize($this->modelClass), $id));
353
355
$this->controller->redirect($this->redirect);
354
356
} else {
355
-
return$this->controller->flash(sprintf(__('There was an error deleting the %1$s with id: %2$d', true), Inflector::humanize($this->modelClass), $id), '/' . $this->viewPath);
357
+
$this->controller->flash(sprintf(__('There was an error deleting the %1$s with id: %2$d', true), Inflector::humanize($this->modelClass), $id), '/' . $this->viewPath);
0 commit comments