Skip to content

Commit

Permalink
fix invlid links
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Oct 11, 2024
1 parent 361a41b commit d8996d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/ExplorerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public function explore(Request $request)
// Forest
$forests = DB::table('forest_ads')->select('id', 'name', 'zone_admin_id')->whereNull('deleted_at')->get();
foreach ($forests as $forest) {
$this->addNode($nodes, 4, $this->formatId('FOREST_', $forest->id), $forest->name, '/images/ldap.png', 'forests_ads');
$this->addNode($nodes, 4, $this->formatId('FOREST_', $forest->id), $forest->name, '/images/ldap.png', 'forests-ads');
$this->addLinkEdge($edges, $this->formatId('FOREST_', $forest->id), $this->formatId('ZONE_', $forest->zone_admin_id));
}
// Domain
Expand All @@ -548,7 +548,7 @@ public function explore(Request $request)
// AdminUsers
$adminUsers = DB::table('admin_users')->select('id', 'user_id', 'domain_id')->whereNull('deleted_at')->get();
foreach ($adminUsers as $adminUser) {
$this->addNode($nodes, 4, $this->formatId('USER_', $adminUser->id), $adminUser->user_id, '/images/user.png', 'admin_users');
$this->addNode($nodes, 4, $this->formatId('USER_', $adminUser->id), $adminUser->user_id, '/images/user.png', 'admin-users');
if ($adminUser->domain_id !== null) {
$this->addLinkEdge($edges, $this->formatId('USER_', $adminUser->id), $this->formatId('DOMAIN_', $adminUser->domain_id));
}
Expand Down

0 comments on commit d8996d1

Please sign in to comment.