diff pkg/controllers/agmimports.go @ 1787:b0bf7533deec

Sounding result / Approved gauge measurement import: Send email when field 'email' is set to true not 'bottleneck'. Doh!
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 13 Jan 2019 13:09:50 +0100
parents 807569b08513
children 8eeb0b5eb340
line wrap: on
line diff
--- a/pkg/controllers/agmimports.go	Sun Jan 13 13:02:39 2019 +0100
+++ b/pkg/controllers/agmimports.go	Sun Jan 13 13:09:50 2019 +0100
@@ -92,7 +92,7 @@
 
 	session, _ := auth.GetSession(req)
 
-	sendEmail := req.FormValue("bottleneck") != ""
+	sendEmail := req.FormValue("email") != ""
 
 	var due time.Time
 	if d := req.FormValue("due"); d != "" {