Mercurial > gemma
changeset 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 | 09349ca27dd7 |
children | 00f34a00e6d5 |
files | pkg/controllers/agmimports.go pkg/controllers/srimports.go |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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 != "" {
--- a/pkg/controllers/srimports.go Sun Jan 13 13:02:39 2019 +0100 +++ b/pkg/controllers/srimports.go Sun Jan 13 13:09:50 2019 +0100 @@ -161,7 +161,7 @@ session, _ := auth.GetSession(req) - sendEmail := req.FormValue("bottleneck") != "" + sendEmail := req.FormValue("email") != "" var due time.Time if d := req.FormValue("due"); d != "" {