GWM : Class 500 error
This commit is contained in:
parent
994a65d2f6
commit
b0a6b5c859
@ -165,20 +165,27 @@ class MasterController extends ResourceController
|
|||||||
$user_id = $this->request->getVar('user_id');
|
$user_id = $this->request->getVar('user_id');
|
||||||
|
|
||||||
$user = $this->userModel->where('user_id', $user_id)->first();
|
$user = $this->userModel->where('user_id', $user_id)->first();
|
||||||
|
|
||||||
$groupData = $this->groupModel->find($user['group_id']);
|
$groupData = $this->groupModel->find($user['group_id']);
|
||||||
|
|
||||||
if($groupData)
|
if($groupData)
|
||||||
{
|
{
|
||||||
if($trip_type == 1) { $policyId = $groupData['domestic_policy_id'];}else{ $policyId = $groupData['international_policy_id'];}
|
if($trip_type == 1) { $policyId = $groupData['domestic_policy_id'];}else{ $policyId = $groupData['international_policy_id'];}
|
||||||
|
// dd($policyId);
|
||||||
if($policyId != null)
|
if($policyId != null)
|
||||||
{
|
{
|
||||||
$minFlightClassKey = $this->policyDetailsModel->where('policy_id',$policyId)->where('service_id',1)->get()->getRow()->class;
|
$minFlightRow = $this->policyDetailsModel->where('policy_id', $policyId)->where('service_id', 1)->get()->getRow();
|
||||||
$minTrainClassKey = $this->policyDetailsModel->where('policy_id',$policyId)->where('service_id',2)->get()->getRow()->class;
|
|
||||||
$minHotelClassKey = $this->policyDetailsModel->where('policy_id',$policyId)->where('service_id',5)->get()->getRow()->class;
|
$minTrainRow = $this->policyDetailsModel->where('policy_id', $policyId)->where('service_id', 2)->get()->getRow();
|
||||||
|
|
||||||
|
$minHotelRow = $this->policyDetailsModel->where('policy_id', $policyId)->where('service_id', 5)->get()->getRow();
|
||||||
|
|
||||||
|
$minFlightClassKey = $minFlightRow ? $minFlightRow->class : null;
|
||||||
|
$minTrainClassKey = $minTrainRow ? $minTrainRow->class : null;
|
||||||
|
$minHotelClassKey = $minHotelRow ? $minHotelRow->class : null;
|
||||||
|
|
||||||
}
|
}
|
||||||
// echo "Flight 3 but ".$minFlightClassKey; //3
|
|
||||||
// echo "\n train 1 but ".$minTrainClassKey; //1
|
|
||||||
// echo "\n hotel 5 but ".$minHotelClassKey; //5
|
|
||||||
// die;
|
|
||||||
|
|
||||||
//flight
|
//flight
|
||||||
$allFlightClass = $this->dropdownModel->where('dropdown', 'flight_class')->orderBy('dropdown_key','ASC')->findAll();
|
$allFlightClass = $this->dropdownModel->where('dropdown', 'flight_class')->orderBy('dropdown_key','ASC')->findAll();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user