diff --git a/application/controllers/Inspection.php b/application/controllers/Inspection.php index 1117914..5411c71 100644 --- a/application/controllers/Inspection.php +++ b/application/controllers/Inspection.php @@ -478,7 +478,9 @@ public function inspection_save() if ($imgdata && count($imgdata) > 0) { $this->itindata_model->set_inspectionimg($this->input->post('inspectionid_insres'), $imgdata); } -$updata['s1score_inspection'] = $this->itindata_model->get_sectionscore($this->input->post('inspectionid_insres'), 1); +$pointsforscore = $this->input->post('inspectionid_insres'); +unset($pointsforscore[97]); +$updata['s1score_inspection'] = $this->itindata_model->get_sectionscore($pointsforscore, 1); $updata['s2score_inspection'] = $this->itindata_model->get_sectionscore($this->input->post('inspectionid_insres'), 12); $updata['s3score_inspection'] = $this->itindata_model->get_sectionscore($this->input->post('inspectionid_insres'), 16); $updata['s1pen_inspection'] = $this->input->post('pensect1');