projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT NonCustomerEmailRegexp option, #15847
[freeside.git]
/
rt
/
lib
/
RT
/
Interface
/
Web_Vendor.pm
diff --git
a/rt/lib/RT/Interface/Web_Vendor.pm
b/rt/lib/RT/Interface/Web_Vendor.pm
index
129f69f
..
ee8c34b
100644
(file)
--- a/
rt/lib/RT/Interface/Web_Vendor.pm
+++ b/
rt/lib/RT/Interface/Web_Vendor.pm
@@
-118,6
+118,14
@@
sub ProcessTicketCustomers {
}
###
}
###
+ #remove any declared non-customer addresses
+ ###
+
+ my $exclude_regexp = RT->Config->Get('NonCustomerEmailRegexp');
+ @Requestors = grep { not $_->EmailAddress =~ $exclude_regexp } @Requestors
+ if defined $exclude_regexp;
+
+ ###
#link ticket (and requestors) to customers
###
#link ticket (and requestors) to customers
###