Fixed: The noticies on the Admin controllers when the identifier provided manually by editing the url does not exists in the database

This commit is contained in:
vishalsingh.qlo325
2024-05-07 13:07:36 +05:30
parent 8dcfc9e892
commit 646f45c783
8 changed files with 27 additions and 16 deletions

View File

@@ -452,10 +452,9 @@ class AdminFeaturesControllerCore extends AdminController
$this->initToolbar();
$this->initPageHeaderToolbar();
if ($this->display == 'edit' || $this->display == 'add') {
if (!$this->loadObject(true)) {
return;
if ($this->loadObject(true)) {
$this->content .= $this->renderForm();
}
$this->content .= $this->renderForm();
} elseif ($this->display == 'view') {
// Some controllers use the view action without an object
if ($this->className) {