aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-01-23 09:54:08 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-01-25 16:49:08 +0000
commit8fcff2a03a742730922bc620de253dcf6660909f (patch)
treea46e9b0124a93a16581ca3c4b5307f49bdd20988 /perllib/FixMyStreet/App/Controller/Report.pm
parent84a132729508b33fd2120a8ad8644c07a5658ea1 (diff)
Spot moderation conflicts.
If someone tries to moderate after someone else has, re-show the form and an error.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 1eac76c9a..a7a3328dc 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -243,6 +243,7 @@ sub load_updates : Private {
my $last_history = $problem;
foreach my $history (@history) {
push @combined, [ $history->created, {
+ id => 'm' . $history->id,
type => 'moderation',
last => $last_history,
entry => $history,