From e2c2e1c179265ee06b78b4fd3d3aa058a09270db Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Tue, 14 Aug 2018 19:37:07 -0400 Subject: RT# 78547 noexport_hack part_export::ikano --- FS/FS/part_export/ikano.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'FS') diff --git a/FS/FS/part_export/ikano.pm b/FS/FS/part_export/ikano.pm index 23917bf9e..68b1a9fde 100644 --- a/FS/FS/part_export/ikano.pm +++ b/FS/FS/part_export/ikano.pm @@ -10,6 +10,7 @@ use FS::Record qw(qsearch qsearchs dbh); use FS::part_export; use FS::svc_dsl; use Data::Dumper; +use Carp qw(carp); @ISA = qw(FS::part_export); $me= '[' . __PACKAGE__ . ']'; @@ -678,7 +679,13 @@ sub _export_delete { sub export_expire { my($self, $svc_dsl, $date) = (shift, shift, shift); - + + if ( $FS::svc_Common::noexport_hack ) { + carp 'export_expire() suppressed by noexport_hack' + if $self->option('debug'); + return; + } + return 'Invalid operation - Import Mode is enabled' if $self->import_mode; my $result = $self->valid_order($svc_dsl,'expire'); -- cgit v1.2.1