Skip to content

Commit

Permalink
fix custid references in routing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhilliard committed Nov 3, 2021
1 parent d61fc07 commit bdece40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/customer/overview.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<?php $this->section( 'page-header-postamble' ) ?>
<div class="btn-group btn-group-sm ml-auto" role="group" aria-label="...">
<a class="btn btn-white" href="<?= route('statistics@member', [ 'id' => $c->id ] ) ?>">
<a class="btn btn-white" href="<?= route('statistics@member', [ 'cust' => $c->id ] ) ?>">
Port Graphs
</a>
<div class="btn-group btn-group-sm">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/statistics/latency.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<?= $t->c->getFormattedName() ?>
</a>
/
<a href="<?= route( 'statistics@member', [ 'id' => $t->c->id ] ) ?>" >
<a href="<?= route( 'statistics@member', [ 'cust' => $t->c->id ] ) ?>" >
Statistics
</a>
/
Expand All @@ -24,7 +24,7 @@

<?php $this->section( 'page-header-postamble' ) ?>
<?php if( Auth::check() && !$isSuperUser ): ?>
<a class="btn btn-white" href="<?= route( 'statistics@member', [ 'id' => $t->c->id ] ) ?>">All Ports</a>
<a class="btn btn-white" href="<?= route( 'statistics@member', [ 'cust' => $t->c->id ] ) ?>">All Ports</a>
<?php endif; ?>
<?php $this->append() ?>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/statistics/member-drilldown.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</select>
</div>
</li>
<a class="btn btn-white float-right" href="<?= route( 'statistics@member', [ 'id' => $t->c->id ] ) ?>?category=<?= $t->graph->category() ?>">
<a class="btn btn-white float-right" href="<?= route( 'statistics@member', [ 'cust' => $t->c->id ] ) ?>?category=<?= $t->graph->category() ?>">
All Ports
</a>
</form>
Expand Down

0 comments on commit bdece40

Please sign in to comment.