diff options
-rw-r--r-- | t/app/controller/admin.t | 1 | ||||
-rw-r--r-- | templates/web/base/admin/body.html | 2 |
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> |