From a5711cdc305a8ecd27a010ed2cc0c033797d5fbd Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Tue, 24 Mar 2026 19:39:27 -0700 Subject: [PATCH] backend: test for exact DisplayName match - The ListMaps method is unexpectedly finding DisplayName substrings --- pkg/web_api/submissions.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/web_api/submissions.go b/pkg/web_api/submissions.go index 463ff9e..dbcd1b4 100644 --- a/pkg/web_api/submissions.go +++ b/pkg/web_api/submissions.go @@ -567,8 +567,12 @@ func (svc *Service) ActionSubmissionTriggerSubmit(ctx context.Context, params ap if err != nil { return err } - if len(maps_list) != 0 { - return ErrDisplayNameNotUnique + + // The map search finds substrings, we only want exact matches + for _, m := range maps_list { + if m.DisplayName == submission.DisplayName { + return ErrDisplayNameNotUnique + } } // transaction -- 2.49.1