diff --git a/bench/action.go b/bench/action.go index a77f3df0..0b1a487e 100644 --- a/bench/action.go +++ b/bench/action.go @@ -66,7 +66,7 @@ func GetOrganizerPlayersListAction(ctx context.Context, ag *agent.Agent) (*http. func PostOrganizerPlayersAddAction(ctx context.Context, playerDisplayNames []string, ag *agent.Agent) (*http.Response, error) { form := url.Values{} for _, displayName := range playerDisplayNames { - form.Add("display_name", displayName) + form.Add("display_name[]", displayName) } req, err := ag.POST("/api/organizer/players/add", strings.NewReader(form.Encode())) if err != nil { diff --git a/webapp/go/isuports.go b/webapp/go/isuports.go index 8d4e97ad..c3bb7d47 100644 --- a/webapp/go/isuports.go +++ b/webapp/go/isuports.go @@ -784,7 +784,7 @@ func playersAddHandler(c echo.Context) error { if err != nil { return fmt.Errorf("error c.FormParams: %w", err) } - displayNames := params["display_name"] + displayNames := params["display_name[]"] pds := make([]PlayerDetail, 0, len(displayNames)) for _, displayName := range displayNames {