diff --git a/app/src/Controller/StandardController.php b/app/src/Controller/StandardController.php index 482dab2c3..e3490a4ad 100644 --- a/app/src/Controller/StandardController.php +++ b/app/src/Controller/StandardController.php @@ -257,7 +257,7 @@ public function delete($id) { * @param string $id Object ID */ - public function edit(string $id, bool $standardRender = true) { + public function edit(string $id) { // $this->name = Models (ie: from ModelsTable) $modelsName = $this->name; // $table = the actual table object @@ -366,12 +366,7 @@ public function edit(string $id, bool $standardRender = true) { } // Let the view render - if($standardRender) { - // $standardRender can be set to false to allow CakePHP - // to do it's normal controller::action->view::action.php mapping - $this->render('/Standard/add-edit-view'); - } - + $this->render('/Standard/add-edit-view'); } /** @@ -707,7 +702,7 @@ protected function populateAutoViewVars(object $obj=null) { * @param Integer $id Object ID */ - public function view($id = null, bool $standardRender = true) { + public function view($id = null) { // $this->name = Models $modelsName = $this->name; // $table = the actual table object @@ -764,10 +759,6 @@ public function view($id = null, bool $standardRender = true) { } // Let the view render - if($standardRender) { - // $standardRender can be set to false to allow CakePHP - // to do it's normal controller::action->view::action.php mapping - $this->render('/Standard/add-edit-view'); - } + $this->render('/Standard/add-edit-view'); } } \ No newline at end of file