aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-03-29 10:31:55 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-03-29 11:04:17 +0100
commit28b9f1b3bb54cebbe1236a9f29539fc4544c4061 (patch)
tree6179e25bf71e906a696058e6b0c0373164f7d1b5
parent9dc22d870870eec159437df9af1d2103c8a474b3 (diff)
Default new category creation to confirmed.
Fixes #1266.
-rw-r--r--t/app/controller/admin.t1
-rw-r--r--templates/web/base/admin/body.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index 92cbbc00f..310e0a677 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -171,6 +171,7 @@ subtest 'check contact creation' => sub {
email => 'test@example.com',
note => 'test note',
non_public => undef,
+ confirmed => 0,
} } );
$mech->content_contains( 'test category' );
diff --git a/templates/web/base/admin/body.html b/templates/web/base/admin/body.html
index 84ea6840c..b46d411c2 100644
--- a/templates/web/base/admin/body.html
+++ b/templates/web/base/admin/body.html
@@ -162,7 +162,7 @@
</p>
</div>
<p>
- <input type="checkbox" name="confirmed" value="1" id="confirmed"[% ' checked' IF contact.confirmed %]>
+ <input type="checkbox" name="confirmed" value="1" id="confirmed"[% ' checked' IF contact.confirmed OR contact.confirmed == "" %]>
<label for="confirmed" class="inline">[% loc('Confirmed') %]</label>
</p>