Fix(Scrutinizer) replace return get with the good
This commit is contained in:
parent
06c092acc0
commit
40e0bc2190
@ -441,7 +441,7 @@ class Recruitment extends DolibarrApi
|
|||||||
// $this->jobposition->abc = sanitizeVal($this->jobposition->abc, 'alphanohtml');
|
// $this->jobposition->abc = sanitizeVal($this->jobposition->abc, 'alphanohtml');
|
||||||
|
|
||||||
if ($this->jobposition->update(DolibarrApiAccess::$user, false) > 0) {
|
if ($this->jobposition->update(DolibarrApiAccess::$user, false) > 0) {
|
||||||
return $this->get($id);
|
return $this->getJobPosition($id);
|
||||||
} else {
|
} else {
|
||||||
throw new RestException(500, $this->jobposition->error);
|
throw new RestException(500, $this->jobposition->error);
|
||||||
}
|
}
|
||||||
@ -484,7 +484,7 @@ class Recruitment extends DolibarrApi
|
|||||||
// $this->jobposition->abc = sanitizeVal($this->jobposition->abc, 'alphanohtml');
|
// $this->jobposition->abc = sanitizeVal($this->jobposition->abc, 'alphanohtml');
|
||||||
|
|
||||||
if ($this->candidature->update(DolibarrApiAccess::$user, false) > 0) {
|
if ($this->candidature->update(DolibarrApiAccess::$user, false) > 0) {
|
||||||
return $this->get($id);
|
return $this->getCandidature($id);
|
||||||
} else {
|
} else {
|
||||||
throw new RestException(500, $this->candidature->error);
|
throw new RestException(500, $this->candidature->error);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user