Skip to content
Snippets Groups Projects
Commit ec99566c authored by nicrausaz's avatar nicrausaz
Browse files

Rapport, journal

parent af94f59c
No related branches found
No related tags found
No related merge requests found
......@@ -133,9 +133,16 @@ class ApplicantsController extends Controller
{
// get applicant
if ($status_restricted) {
$applicant = DB::table('applicant')->where('applicant_id', $id)->where('fk_status', 'Valide')->first();
$applicant = DB::table('applicant')->where('applicant_id', $id)
->join('position', 'applicant.fk_position', '=', 'position.position_id')
->join('job', 'position.fk_job', '=', 'job.job_id')
->where('fk_status', 'Valide')
->first();
} else {
$applicant = DB::table('applicant')->where('applicant_id', $id)->first();
$applicant = DB::table('applicant')->where('applicant_id', $id)
->join('position', 'applicant.fk_position', '=', 'position.position_id')
->join('job', 'position.fk_job', '=', 'job.job_id')
->first();
}
// get responsibles
$main_resp = DB::table('applicant')->where('applicant_id', $id)
......
File added
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment