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 = [];
|
$result = [];
|
||||||
foreach ($ClientPolicyData as $key => $ClientPolicyValue) {
|
foreach ($ClientPolicyData as $key => $ClientPolicyValue) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($ClientPolicyValue['policy_type_id'] == 1)
|
if($ClientPolicyValue['policy_type_id'] == 1)
|
||||||
{
|
{
|
||||||
$policyGroup = 'gpa';
|
$policyGroup = 'gpa';
|
||||||
@ -2555,11 +2551,7 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$terms = json_decode($ClientPolicyValue['policy_terms'] , true);
|
$terms = json_decode($ClientPolicyValue['policy_terms'] , true);
|
||||||
$data['policy_terms'] = isset($terms['enrollment_display_key'])
|
$data['policy_terms'] = isset($terms['enrollment_display_key']) && !empty($terms['enrollment_display_key']) ? $terms['enrollment_display_key'] : $this->policyTermsFiter($terms, $policyGroup);
|
||||||
&& !empty($terms['enrollment_display_key'])
|
|
||||||
? $terms['enrollment_display_key']
|
|
||||||
: $this->policyTermsFiter($terms, $policyGroup);
|
|
||||||
$terms = json_decode($ClientPolicyValue['policy_terms']);
|
|
||||||
|
|
||||||
|
|
||||||
$data['client_id'] = $ClientPolicyValue['client_id'];
|
$data['client_id'] = $ClientPolicyValue['client_id'];
|
||||||
|
|||||||
@ -563,7 +563,7 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<!-- Enrollment process -->
|
<!-- 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>
|
<li>
|
||||||
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
<i class="fas fa-user-tie"></i>
|
<i class="fas fa-user-tie"></i>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user