summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Jackson <mitch@mitchjacksontech.com>2018-08-14 19:34:50 -0400
committerMitch Jackson <mitch@freeside.biz>2018-08-14 20:26:39 -0400
commit66006d4fd95324b9148c95fc3dcef1ced8096b5a (patch)
tree53a9df8faead8892ce3f4cdfb0b0dd4401876d2c
parentbd7a4fa7a0fd966692d95b0f9cc7991a2a51310c (diff)
RT# 78547 noexport_hack part_svc::http_status
-rw-r--r--FS/FS/part_export/http_status.pm21
1 files changed, 19 insertions, 2 deletions
diff --git a/FS/FS/part_export/http_status.pm b/FS/FS/part_export/http_status.pm
index 5c4a8d074..3e182d347 100644
--- a/FS/FS/part_export/http_status.pm
+++ b/FS/FS/part_export/http_status.pm
@@ -8,6 +8,7 @@ use URI::Escape;
use LWP::UserAgent;
use HTTP::Request::Common;
use Email::Valid;
+use Carp qw(carp);
tie my %options, 'Tie::IxHash',
'url' => { label => 'URL', },
@@ -53,6 +54,12 @@ sub _export_delete { '' };
sub export_getstatus {
my( $self, $svc_x, $htmlref, $hashref ) = @_;
+ if ( $FS::svc_Common::noexport_hack ) {
+ carp 'export_getstatus() suppressed by noexport_hack'
+ if $self->option('debug') || $DEBUG;
+ return;
+ }
+
my $url;
my $urlopt = $self->option('url');
no strict 'vars';
@@ -131,6 +138,12 @@ sub export_setstatus_listdel {
sub export_setstatus_listX {
my( $self, $svc_x, $action, $list, $address_item ) = @_;
+ if ( $FS::svc_Common::noexport_hack ) {
+ carp 'export_setstatus_listX() suppressed by noexport_hack'
+ if $self->option('debug') || $DEBUG;
+ return;
+ }
+
my $option;
if ( $list =~ /^[WA]/i ) { #Whitelist/Allow
$option = 'whitelist_';
@@ -182,6 +195,12 @@ sub export_setstatus_vacationdel {
sub export_setstatus_vacationX {
my( $self, $svc_x, $action, $hr ) = @_;
+ if ( $FS::svc_Common::noexport_hack ) {
+ carp 'export_setstatus_vacationX() suppressed by noexport_hack'
+ if $self->option('debug') || $DEBUG;
+ return;
+ }
+
my $option = 'vacation_'. $action. '_url';
my $subject = uri_escape($hr->{subject});
@@ -216,5 +235,3 @@ sub export_setstatus_vacationX {
}
1;
-
-1;