Skip to content

Commit

Permalink
restrict customer list on patch-panel-port/edit to current customers …
Browse files Browse the repository at this point in the history
…only
  • Loading branch information
nickhilliard committed Dec 4, 2024
1 parent 5c96965 commit fc9c7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PatchPanel/Port/PortController.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function edit( Request $r, PatchPanelPort $ppp, string $formType = null )

return view( 'patch-panel-port/edit' )->with([
'states' => $states,
'customers' => Customer::select( [ 'id', 'name' ] )->orderBy( 'name' )->get(),
'customers' => Customer::select( [ 'id', 'name' ] )->current()->orderBy( 'name' )->get(),
'switches' => Switcher::select( [ 'switch.id', 'switch.name' ] )
->leftJoin( 'cabinet AS cab', 'cab.id', 'switch.cabinetid' )
->where( 'active', true )
Expand Down

0 comments on commit fc9c7fd

Please sign in to comment.