diff --git a/Modules/Agents/Services/AgentService.php b/Modules/Agents/Services/AgentService.php index d54477c..239e4ff 100644 --- a/Modules/Agents/Services/AgentService.php +++ b/Modules/Agents/Services/AgentService.php @@ -187,7 +187,7 @@ class AgentService continue; // skip agent root if (!empty($input['up_grant'])) { // if existing up_geant - if ($upGrant != $input['up_grant']) + if (strtolower($upGrant) != strtolower($input['up_grant'])) continue; // skip } @@ -286,7 +286,7 @@ class AgentService $upGrant = $agentParent->code ?? null; } if (!empty($input['up_grant'])) { // if existing up_geant - if ($upGrant != $input['up_grant']) + if (strtolower($upGrant) != strtolower($input['up_grant'])) continue; // skip } // lay danh sach 2 con cua parent