|
|
@ -187,7 +187,7 @@ class AgentService |
|
|
|
continue; // skip agent root |
|
|
|
continue; // skip agent root |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($input['up_grant'])) { // if existing up_geant |
|
|
|
if (!empty($input['up_grant'])) { // if existing up_geant |
|
|
|
if ($upGrant != $input['up_grant']) |
|
|
|
if (strtolower($upGrant) != strtolower($input['up_grant'])) |
|
|
|
continue; // skip |
|
|
|
continue; // skip |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -286,7 +286,7 @@ class AgentService |
|
|
|
$upGrant = $agentParent->code ?? null; |
|
|
|
$upGrant = $agentParent->code ?? null; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!empty($input['up_grant'])) { // if existing up_geant |
|
|
|
if (!empty($input['up_grant'])) { // if existing up_geant |
|
|
|
if ($upGrant != $input['up_grant']) |
|
|
|
if (strtolower($upGrant) != strtolower($input['up_grant'])) |
|
|
|
continue; // skip |
|
|
|
continue; // skip |
|
|
|
} |
|
|
|
} |
|
|
|
// lay danh sach 2 con cua parent |
|
|
|
// lay danh sach 2 con cua parent |
|
|
|