ROLES TABLE ADDED
This commit is contained in:
parent
d15293b16a
commit
d29e6c94f4
@ -86,7 +86,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', 'triggerNewPD'); // no errors
|
||||
defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN', 'getListOfUsers'); // no errors
|
||||
|
||||
/*********************AWS resources Constants*************************************************/
|
||||
defined('PROFILE_PICTURE_BUCKET_NAME') OR define('PROFILE_PICTURE_BUCKET_NAME','sineedgedevprofilepic');
|
||||
@ -269,5 +269,8 @@ defined('PDAPPLICANTSLOGSID') OR define('PDAPPLICANTSLOGSID','pd_co_applicant_tr
|
||||
defined('PDSCHEDULE') OR define('PDSCHEDULE','t_pd_schedule');
|
||||
defined('PDSCHEDULEID') OR define('PDSCHEDULEID','pd_schedule_id');
|
||||
|
||||
defined('ROLES') OR define('ROLES','m_roles');
|
||||
defined('ROLESID') OR define('ROLESID','role_id');
|
||||
|
||||
|
||||
|
||||
|
||||
@ -314,15 +314,15 @@ class PD_Controller extends REST_Controller {
|
||||
if($pd_id != null || $pd_id != '')
|
||||
{
|
||||
|
||||
// foreach($pd_applicant_details as $pd_applicant_detail)
|
||||
// {
|
||||
// $pd_applicant_detail['fk_pd_id'] = $pd_id;
|
||||
// $co_applicant_id = $this->PD_Model->saveRecords($pd_applicant_detail,PDAPPLICANTSDETAILS);
|
||||
// if($co_applicant_id != null || $co_applicant_id != '')
|
||||
// {
|
||||
// $count = $count + 1;
|
||||
// }
|
||||
// }
|
||||
foreach($pd_applicant_details as $pd_applicant_detail)
|
||||
{
|
||||
$pd_applicant_detail['fk_pd_id'] = $pd_id;
|
||||
$co_applicant_id = $this->PD_Model->saveRecords($pd_applicant_detail,PDAPPLICANTSDETAILS);
|
||||
if($co_applicant_id != null || $co_applicant_id != '')
|
||||
{
|
||||
$count = $count + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// update into pd officer details
|
||||
|
||||
@ -19,7 +19,7 @@ class User_Management_Model extends SPARQ_Model {
|
||||
$this->db->from(USERPROFILE.' as USERPROFILE');
|
||||
$this->db->join(ENTITY.' as ENTITY','USERPROFILE.fk_entity_id = ENTITY.entity_id and ENTITY.isactive = 1','LEFT');
|
||||
$this->db->join(DESIGNATION.' as DESIGNATION','USERPROFILE.fk_designation = DESIGNATION.designation_id and DESIGNATION.isactive = 1','left');
|
||||
$this->db->join(STATE.' as STATE','USERPROFILE.fk_state = STATE.state_id and STATE.isactive = 1');
|
||||
$this->db->join(STATE.' as STATE','USERPROFILE.fk_state = STATE.state_id and STATE.isactive = 1','LEFT');
|
||||
$this->db->join(CITY.' as CITY','USERPROFILE.fk_city = CITY.city_id and CITY.isactive = 1','LEFT');
|
||||
$this->db->join(USERPROFILE.' as USERPROFILE1','USERPROFILE.fk_createdby = USERPROFILE1.userid and USERPROFILE1.isactive = 1','LEFT');
|
||||
$this->db->join(USERPROFILE.' as USERPROFILE2','USERPROFILE.fk_updatedby = USERPROFILE2.userid and USERPROFILE2.isactive = 1','LEFT');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user