From 8e913325a1aa59bb33cbb4b3ab1f5b7f7edf23c2 Mon Sep 17 00:00:00 2001 From: pluja Date: Sun, 25 Feb 2024 18:10:43 +0100 Subject: [PATCH] allow less attributes --- src/server/web_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/web_handlers.go b/src/server/web_handlers.go index 9c98c98..0027c6d 100644 --- a/src/server/web_handlers.go +++ b/src/server/web_handlers.go @@ -294,7 +294,7 @@ func (s *Server) handlePostRequestServiceForm(c iris.Context) { return } - if len(data.Attributes) < 3 { + if len(data.Attributes) < 1 { log.Error().Msgf("Invalid number of attributes: %v", len(data.Attributes)) c.Redirect("/request/service?error=You%20must%20select%20at%20least%203%20attributes", iris.StatusSeeOther) return