aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-08-22 17:39:00 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-08-24 12:08:25 +0100
commitb86cf12575fd42289803656743d40a1065150818 (patch)
tree7a615b98aacc7bd5d2d78725d28bc99c5df671da /perllib/FixMyStreet/App/Controller/Report/New.pm
parent669fd23dbb7870fe20284f3e029a1fe6da09625b (diff)
Automatically spot Open311 co-ord/ID attributes.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 6934c6d79..cfb572d83 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -615,7 +615,7 @@ sub setup_categories_and_bodies : Private {
unless ( $seen{$contact->category} ) {
push @category_options, $contact->category;
- my $metas = $contact->get_extra_fields;
+ my $metas = $contact->get_metadata_for_input;
if (scalar @$metas) {
foreach (@$metas) {
if (ref $_->{values} eq 'HASH') {
@@ -861,7 +861,7 @@ sub process_report : Private {
my @extra;
foreach my $contact (@contacts) {
- my $metas = $contact->get_extra_fields;
+ my $metas = $contact->get_metadata_for_input;
foreach my $field ( @$metas ) {
if ( lc( $field->{required} ) eq 'true' ) {
unless ( $c->get_param($field->{code}) ) {