diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index e054df85..8248ba37 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -280,12 +280,6 @@ class Jobs extends Users_Controller { $this->table->set_heading(array('data' => 'Added', 'style' => 'width:120px'), 'Interested Client', array('data' => 'Status', 'style' => 'width:90px'), array('data' => '', 'style' => 'width:90px')); $data['job_others_interest_table'] = $this->table->generate($query2); - - - /* $this->load->view('users/view_header_user', $data); - $this->load->view('jobs/view_manageinterest', $data); - $this->load->view('users/view_footer_user', $data);*/ - $this->renderSecurePage('jobs/view_manageinterest', $data); } @@ -460,28 +454,30 @@ class Jobs extends Users_Controller { // url: "/jobs/procinterest?proc=REJECT&interest_id=" + interest_id // url: "/jobs/procinterest?proc=CANCEL&interest_id=" + interest_id $data = $this->getSessionArray(); - $data['interest_id'] = $this->input->get('interest_id'); + $inx= []; + $inx['interest_id'] = $this->input->get('interest_id'); $proc = $this->input->get('proc'); - $data['interest'] = 0; + $inx['interest'] = 0; + $inx['member_id'] = $_SESSION['member_id']; switch ($proc) { case 'ACCEPT': - $data['interest'] = JOB_INTEREST_ACCEPT; + $inx['interest'] = JOB_INTEREST_ACCEPT; break; case 'REJECT': - $data['interest'] = JOB_INTEREST_REJECT; + $inx['interest'] = JOB_INTEREST_REJECT; break; case 'CANCEL': - $data['interest'] = JOB_INTEREST_CANCEL; + $inx['interest'] = JOB_INTEREST_CANCEL; break; } - if ($data['interest'] > 0) { - $data['action'] = WRENCHBOARD_JOB_PROC_INTEREST; + if ($inx['interest'] > 0) { + $inx['action'] = WRENCHBOARD_JOB_PROC_INTEREST; $this->load->model('backend_model'); $out = array(); - $res = $this->backend_model->wrenchboard_api($data, $out); + $res = $this->backend_model->wrenchboard_api($inx, $out); if ($res == PHP_CREATED_OK) { echo 'Success - ' . $out['status']; } else {