Skip to content

Commit

Permalink
[BF] Fix exception thrown when editing the switchport of a core bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Feb 9, 2024
1 parent eec5126 commit db24038
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,12 @@ public function update( StorePhysicalInterface $r, PhysicalInterface $pi ): Redi
}

AlertContainer::push( 'Physical Interface updated.', Alert::SUCCESS );
return Redirect::to( $r->cb ? route( "core-bundle@edit", [ "cb" => $r->cb ] ) : route( "virtual-interface@edit", [ "vi" => $pi->virtualinterfaceid ] ) );

if( $r->cb ) {
return redirect( route( "core-bundle@edit", [ "cb" => json_decode($r->cb)->id ] ) );
}

return redirect( route( "virtual-interface@edit", [ "vi" => $pi->virtualinterfaceid ] ) );
}

/**
Expand Down

0 comments on commit db24038

Please sign in to comment.