aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-31 15:19:50 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-04 14:09:32 +0100
commit7e15d7dfda2e9fb10138aa63c990dd551994cc7a (patch)
treec984299aa3ee620184fa3fc0691f911745575837
parent4fd8fce72cf9adae08e1827fda984049a10580a5 (diff)
For duplicate, make sure update will be included.
It was checking update text was present, but not whether the update would be included.
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 3f79a99f7..799985f8e 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -402,7 +402,7 @@ sub inspect : Private {
if ( $problem->state eq 'duplicate') {
if (my $duplicate_of = $c->get_param('duplicate_of')) {
$problem->set_duplicate_of($duplicate_of);
- } elsif (not $c->get_param('public_update')) {
+ } elsif (not $c->get_param('include_update')) {
$valid = 0;
push @{ $c->stash->{errors} }, _('Please provide a duplicate ID or public update for this report.');
}