aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2019-09-27 17:00:51 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-10-03 17:31:39 +0100
commit7e16c49ef7bb2e6fc284ece582f7a08722f52d70 (patch)
treead4dd7ca640050902cebebf12022e9e0de378f81 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent977a546cd51fa0e9d88451dcdfe59c68c9017e8d (diff)
Restructured admin category extra-metadata-form
* Much simplified display of metadata field options. * Fields can now be dragged into the desired order. * Drop-down question form disabling can now have a different message per option. Co-Authored-By: Matthew Somerville <matthew@mysociety.org>
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 9b7a925b8..06974cd09 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -322,7 +322,7 @@ sub disable_form_message : Private {
} elsif (($_->{variable} || '') eq 'true' && @{$_->{values} || []}) {
foreach my $opt (@{$_->{values}}) {
if ($opt->{disable}) {
- $out{message} = $_->{datatype_description};
+ $out{message} = $opt->{disable_message} || $_->{datatype_description};
$out{code} = $_->{code};
push @{$out{answers}}, $opt->{key};
}