JobController: explicitly deal with IDs

This commit is contained in:
Thomas Gelf 2018-10-08 06:19:14 +02:00
parent 03a8043311
commit 178215a7ab
1 changed files with 1 additions and 2 deletions

View File

@ -45,7 +45,6 @@ class JobController extends ActionController
$form = DirectorJobForm::load() $form = DirectorJobForm::load()
->setListUrl('director/jobs') ->setListUrl('director/jobs')
->setObject($job) ->setObject($job)
->loadObject($this->params->getRequired('id'))
->handleRequest(); ->handleRequest();
$this $this
@ -61,7 +60,7 @@ class JobController extends ActionController
*/ */
protected function requireJob() protected function requireJob()
{ {
return DirectorJob::load($this->params->getRequired('id'), $this->db()); return DirectorJob::loadWithAutoIncId((int) $this->params->getRequired('id'), $this->db());
} }
protected function addJobTabs(DirectorJob $job, $active) protected function addJobTabs(DirectorJob $job, $active)