aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 0e4c1d907..4551fcc4a 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -892,8 +892,7 @@ sub admin_report_edit {
if ($type eq 'sdm') {
- my $editable = $type eq 'sdm' && $body->id eq $problem->bodies_str;
- $c->stash->{sdm_disabled} = $editable ? '' : 'disabled';
+ my $editable = $body->id eq $problem->bodies_str;
# Has cut-down edit template for adding update and sending back up only
$c->stash->{template} = 'admin/report_edit-sdm.html';
@@ -971,6 +970,10 @@ sub admin_report_edit {
}
}
+ $c->stash->{sdm_disabled} = $editable ? '' : 'disabled';
+ $c->stash->{sdm_disabled_internal} = $problem->non_public ? 'disabled' : '';
+ $c->stash->{sdm_disabled_fixed} = $problem->is_fixed ? 'disabled' : '';
+
return $self->admin_report_edit_done;
}