Fix(Scrutinizer) replace return get with the good

This commit is contained in:
FLIO 2022-11-09 12:13:57 +01:00
parent 06c092acc0
commit 40e0bc2190

View File

@ -441,7 +441,7 @@ class Recruitment extends DolibarrApi
// $this->jobposition->abc = sanitizeVal($this->jobposition->abc, 'alphanohtml');
if ($this->jobposition->update(DolibarrApiAccess::$user, false) > 0) {
return $this->get($id);
return $this->getJobPosition($id);
} else {
throw new RestException(500, $this->jobposition->error);
}
@ -484,7 +484,7 @@ class Recruitment extends DolibarrApi
// $this->jobposition->abc = sanitizeVal($this->jobposition->abc, 'alphanohtml');
if ($this->candidature->update(DolibarrApiAccess::$user, false) > 0) {
return $this->get($id);
return $this->getCandidature($id);
} else {
throw new RestException(500, $this->candidature->error);
}