diff options
author | Struan Donald <struan@exo.org.uk> | 2012-11-19 12:20:55 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-11-19 12:20:55 +0000 |
commit | 468f89a56ad2cc69ec4ad4904a18dcf891a505cd (patch) | |
tree | e0f69cec5ddb98e9e2920c51eb92c00075757559 /perllib/Open311/PopulateServiceList.pm | |
parent | 136fd944c596e6cebd5127955fb507ae155725c1 (diff) | |
parent | b81ba9819a4f33c21354617538a545a6520eb4d1 (diff) |
Merge branch 'stevenage'
Conflicts:
.gitignore
bin/make_css
conf/crontab.ugly
perllib/FixMyStreet/Cobrand/Default.pm
perllib/Open311.pm
templates/web/fixmystreet/around/postcode_form.html
Diffstat (limited to 'perllib/Open311/PopulateServiceList.pm')
-rw-r--r-- | perllib/Open311/PopulateServiceList.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm index 788024c89..d8730a703 100644 --- a/perllib/Open311/PopulateServiceList.pm +++ b/perllib/Open311/PopulateServiceList.pm @@ -149,6 +149,12 @@ sub _handle_existing_contact { } } + if ( $contact and lc( $self->_current_service->{metadata} ) eq 'true' ) { + $self->_add_meta_to_contact( $contact ); + } elsif ( $contact and $contact->extra and lc( $self->_current_service->{metadata} ) eq 'false' ) { + $contact->update( { extra => undef } ); + } + push @{ $self->found_contacts }, $self->_current_service->{service_code}; } |