Skip to content

Commit fc9c7fd

Browse files
committed
restrict customer list on patch-panel-port/edit to current customers only
1 parent 5c96965 commit fc9c7fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/PatchPanel/Port/PortController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function edit( Request $r, PatchPanelPort $ppp, string $formType = null )
210210

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

0 commit comments

Comments
 (0)