aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-06 17:00:48 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-07 14:59:57 +0100
commit743c60c5e5d134d82533526758b4411198efe063 (patch)
tree4513a31a43cb1c00b9cc49b71a24013bdab07036 /perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm
parent56ff18a3f9495c41d84cc7c68aea0bc81313b392 (diff)
Only show removed in moderation diff if non-blank.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm b/perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm
index 0ff61d64f..b9abb4e40 100644
--- a/perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm
+++ b/perllib/FixMyStreet/DB/Result/ModerationOriginalData.pm
@@ -172,7 +172,7 @@ sub compare_extra {
push @s, string_diff("$_ = $old->{$_}", "$_ = $new->{$_}");
} elsif ($new->{$_}) {
push @s, string_diff("", "$_ = $new->{$_}");
- } else {
+ } elsif ($old->{$_}) {
push @s, string_diff("$_ = $old->{$_}", "");
}
}