summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-02-26 18:37:43 +0100
committerJonas Smedegaard <dr@jones.dk>2015-02-26 18:37:43 +0100
commitacfe5e489a86d8162784d8c03cabfcf8a5f73e27 (patch)
tree6d87991a9a146e325506d20e20d2c1f4e7ee81b8
parent638a83845c0479a93525620855f94b5178a87677 (diff)
Explicitly require comment (thereby not implicitly requiring email or zip).
-rwxr-xr-xform.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/form.cgi b/form.cgi
index f4b5f3a..4e20c39 100755
--- a/form.cgi
+++ b/form.cgi
@@ -30,9 +30,9 @@ my $form = CGI::FormBuilder->new(
email => $valid_email,
_email => $valid_email, #fake check to silence warning of variable used only once
},
-# required => [qw/
-# email
-# /],
+ required => [qw/
+ kommentar
+ /],
messages => ':da_DK',
submit => ['Send oplysningerne'],
action => $webroot, #avoids loosing submitted values when redirected from other site