PD ERROR RESLOVED
This commit is contained in:
parent
33ac169317
commit
7155ce7818
@ -87,7 +87,7 @@ defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest auto
|
||||
// define login route name for token verification
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', '(listLessPDDetails/:any)'); // no errors
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', '(listAllTemplates/:any)'); // no errors
|
||||
defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', 'getPDFormDetails'); // no errors
|
||||
defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', 'getFullPDDetails'); // no errors
|
||||
|
||||
/*********************AWS resources Constants*************************************************/
|
||||
defined('PROFILE_PICTURE_BUCKET_NAME') OR define('PROFILE_PICTURE_BUCKET_NAME','sineedgedevprofilepic');
|
||||
|
||||
@ -422,11 +422,14 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
|
||||
/****************ADDTIONAL REQUIREMENTS SECTION*******************************************/
|
||||
if(($pd_id != null || $pd_id != '')
|
||||
if($pd_id != null || $pd_id != '')
|
||||
{
|
||||
foreach($pd_addtional_requirements as $pd_addtional_requirement_key => $pd_addtional_requirement)
|
||||
if(count($pd_addtional_requirements))
|
||||
{
|
||||
$this->PD_Model->saveRecords($pd_addtional_requirement,PDADDTIONALREQUIREMENTS);
|
||||
foreach($pd_addtional_requirements as $pd_addtional_requirement_key => $pd_addtional_requirement)
|
||||
{
|
||||
$this->PD_Model->saveRecords($pd_addtional_requirement,PDADDTIONALREQUIREMENTS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1243,7 +1246,7 @@ class PD_Controller extends REST_Controller {
|
||||
$result_data['pd_question_answer'] = $this->PD_Model->getPDQuestionAnswers($pdid);
|
||||
|
||||
//Get Addtional Requirements details
|
||||
$result_data['pd_question_answer'] = $this->PD_Model->getPDAddtionalRequirements($pdid);
|
||||
$result_data['pd_addtional_requirements'] = $this->PD_Model->getPDAddtionalRequirements($pdid);
|
||||
|
||||
//Get All PD Logs
|
||||
$result_data['pd_logs'] = $this->PD_Model->getPDLogs($pdid);
|
||||
|
||||
@ -537,9 +537,11 @@ class PD_Model extends SPARQ_Model {
|
||||
return $result_array;
|
||||
}
|
||||
|
||||
public funciton getPDAddtionalRequirements($pdid)
|
||||
public function getPDAddtionalRequirements($pdid)
|
||||
{
|
||||
|
||||
$this->db->SELECT('add_req_id, add_requirement, isactive, fk_pd_id');
|
||||
$this->db->FROM(PDADDTIONALREQUIREMENTS);
|
||||
return $this->db->GET()->result_array();
|
||||
}
|
||||
|
||||
public function getTemplateForPD($pdid,$client)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user