diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index b9eb2e01..570f7766 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -485,7 +485,7 @@ class Sales_PD_Controller extends REST_Controller { //print_r($records);die(); log_message('ERROR','####SALESPD SAVE CALLED'); - $section_names = array('1' => 'General Section','2' => 'Fund Requirement','3' => 'stakeholders','4' => 'Brief of business','5' => 'Financial','6' => 'Property Details','7' => 'Officer Details','8' => 'Final Remraks','9' => 'Photography'); + $section_names = array('1' => 'General Section','2' => 'Fund Requirement','3' => 'stakeholders','4' => 'Brief of business','5' => 'Financial','6' => 'Property Details','7' => 'Final Remraks','8' => 'Officer Details','9' => 'Photography'); $count = $this->Sales_PD_Model->selectCustomRecords(array('count(*) as count'),array('lender_id' => $records['lender_id'],'product_id' => $records['product_id']),SALES_PD_DATA); @@ -575,7 +575,7 @@ class Sales_PD_Controller extends REST_Controller { { unset($records['status']); $data['dataStatus'] = true; - $data['records'] = array('section_id' => 9,'sectin_name' => 'selfie image'); + $data['records'][] = array('section_id' => 9,'sectin_name' => 'selfie image'); $data['pd_status'] = 'DRAFT'; $data['status'] = REST_Controller::HTTP_OK; $this->response($data,REST_Controller::HTTP_OK); diff --git a/api/application/views/sale_pd_templates/MWISE.php b/api/application/views/sale_pd_templates/MWISE.php index 01d19053..d0e9de39 100644 --- a/api/application/views/sale_pd_templates/MWISE.php +++ b/api/application/views/sale_pd_templates/MWISE.php @@ -148,11 +148,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');