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));
346
+
return$this->_output();
341
347
}
342
348
343
349
if ($this->ScaffoldModel->del($id)) {
344
350
if (isset($this->controller->Session) && $this->controller->Session->valid() != false) {
345
351
$this->controller->Session->setFlash(sprintf(__('The %1$s with id: %2$d has been deleted.', true), Inflector::humanize($this->modelClass), $id));
346
352
$this->controller->redirect($this->redirect);
347
353
} 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);
354
+
$this->controller->flash(sprintf(__('The %1$s with id: %2$d has been deleted.', true), Inflector::humanize($this->modelClass), $id), '/' . $this->viewPath);
355
+
return$this->_output();
349
356
}
350
357
} else {
351
358
if (isset($this->controller->Session) && $this->controller->Session->valid() != false) {
352
359
$this->controller->Session->setFlash(sprintf(__('There was an error deleting the %1$s with id: %2$d', true), Inflector::humanize($this->modelClass), $id));
353
360
$this->controller->redirect($this->redirect);
354
361
} 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);
362
+
$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