summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Jackson <mitch@mitchjacksontech.com>2018-08-14 19:43:41 -0400
committerMitch Jackson <mitch@freeside.biz>2018-08-14 20:26:39 -0400
commit0be3757937fc1df97ddb9771c79b758a95d4e23a (patch)
treec167e842567ed4a567cdc0de9d2ecfcf50986281
parentc955f8e33cf8270f37b2d07e3920a30be33dd14a (diff)
RT# 78547 noexport_hack part_export::phone_shellcommands
-rw-r--r--FS/FS/part_export/phone_shellcommands.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm
index 71445bf27..3f01de36b 100644
--- a/FS/FS/part_export/phone_shellcommands.pm
+++ b/FS/FS/part_export/phone_shellcommands.pm
@@ -5,6 +5,7 @@ use vars qw(@ISA %info);
use Tie::IxHash;
use String::ShellQuote;
use FS::part_export;
+use Carp qw(carp);
@ISA = qw(FS::part_export);
@@ -103,6 +104,12 @@ sub _export_command {
my $command = $self->option($action);
return '' if $command =~ /^\s*$/;
+ if ( $FS::svc_Common::noexport_hack ) {
+ carp "_export_command($action) suppressed by noexport_hack"
+ if $self->option('debug');
+ return;
+ }
+
#set variable for the command
no strict 'vars';
{