aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/plugins/exception_notification/exception_notification.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/exception_notification/exception_notification.gemspec')
0 files changed, 0 insertions, 0 deletions
p">; $h->{message} = construct_message( %$h ); my $return = 1; $eh_service ||= Integrations::EastHantsWSDL->on_fault(sub { my($soap, $res) = @_; die ref $res ? $res->faultstring : $soap->transport->status, "\n"; }); try { # ServiceName, RemoteCreatedBy, Salutation, FirstName, Name, Email, Telephone, HouseNoName, Street, Town, County, Country, Postcode, Comments, FurtherInfo, ImageURL my $message = encode_entities(encode_utf8($h->{message})); my $name = encode_entities(encode_utf8($h->{name})); my $result = $eh_service->INPUTFEEDBACK( $h->{category}, 'FixMyStreet', '', '', $name, $h->{email}, $h->{phone}, '', '', '', '', '', '', $message, 'Yes', $h->{image_url} ); $return = 0 if $result eq 'Report received'; } catch { my $e = $_; $self->error( "Error sending to East Hants: $e" ); }; $self->success( !$return ); return $return; } 1;