FIX_REST_TERMS_OBJ_ARR_ISSUE : RV
This commit is contained in:
parent
abd43b9154
commit
69751b0245
@ -2532,10 +2532,6 @@ class EmployeeRestController extends AdminController
|
||||
$result = [];
|
||||
foreach ($ClientPolicyData as $key => $ClientPolicyValue) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if($ClientPolicyValue['policy_type_id'] == 1)
|
||||
{
|
||||
$policyGroup = 'gpa';
|
||||
@ -2555,11 +2551,7 @@ class EmployeeRestController extends AdminController
|
||||
}
|
||||
|
||||
$terms = json_decode($ClientPolicyValue['policy_terms'] , true);
|
||||
$data['policy_terms'] = isset($terms['enrollment_display_key'])
|
||||
&& !empty($terms['enrollment_display_key'])
|
||||
? $terms['enrollment_display_key']
|
||||
: $this->policyTermsFiter($terms, $policyGroup);
|
||||
$terms = json_decode($ClientPolicyValue['policy_terms']);
|
||||
$data['policy_terms'] = isset($terms['enrollment_display_key']) && !empty($terms['enrollment_display_key']) ? $terms['enrollment_display_key'] : $this->policyTermsFiter($terms, $policyGroup);
|
||||
|
||||
|
||||
$data['client_id'] = $ClientPolicyValue['client_id'];
|
||||
|
||||
@ -563,7 +563,7 @@
|
||||
<?php } ?>
|
||||
|
||||
<!-- Enrollment process -->
|
||||
<?php if (in_array(get_role_id(), [1,2,3,5])) { ?>
|
||||
<?php if (in_array(get_role_id(), [1,2,3,5]) || in_array(ENROLLMENT_TEAM_ID, user_team())) { ?>
|
||||
<li>
|
||||
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||
<i class="fas fa-user-tie"></i>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user