aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-12-01 16:13:02 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-12-16 10:15:00 +0000
commit37aaea540af32fd2c40f01471cb9374bc872aa45 (patch)
tree1be661a8f8d54785217593d735cb762a9f946f76
parent020769f403ef4cf1880bd061b6db6b4f4028d3e4 (diff)
Default inspect form to save with public update.
-rw-r--r--t/app/controller/report_inspect.t4
-rw-r--r--templates/web/base/report/_inspect.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t
index 56e6e957f..70b8c9586 100644
--- a/t/app/controller/report_inspect.t
+++ b/t/app/controller/report_inspect.t
@@ -57,7 +57,7 @@ FixMyStreet::override_config {
};
subtest "test basic inspect submission" => sub {
- $mech->submit_form_ok({ button => 'save', with_fields => { traffic_information => 'Yes', state => 'Planned' } });
+ $mech->submit_form_ok({ button => 'save', with_fields => { traffic_information => 'Yes', state => 'Planned', save_inspected => undef } });
$report->discard_changes;
is $report->state, 'planned', 'report state changed';
is $report->get_extra_metadata('traffic_information'), 'Yes', 'report data changed';
@@ -201,7 +201,7 @@ FixMyStreet::override_config {
# which should cause it to be resent. We clear the host because
# otherwise testing stays on host() above.
$mech->clear_host;
- $mech->submit_form(button => 'save', with_fields => { category => 'Horses' });
+ $mech->submit_form(button => 'save', with_fields => { category => 'Horses', save_inspected => undef, });
$report->discard_changes;
is $report->category, "Horses", "Report in correct category";
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index ccaa756c5..c83085e59 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -136,7 +136,7 @@
[% IF permissions.report_inspect %]
<p>
<label class="label-containing-checkbox">
- <input type="checkbox" name="save_inspected" value="1" class="js-toggle-public-update" [% 'checked' IF save_inspected %]>
+ <input type="checkbox" name="save_inspected" value="1" class="js-toggle-public-update" checked>
[% loc('Save with a public update') %]
</label>
</p>