Fix to allow for commented(#) lines in filters for hopper

git-svn-id: svn://192.168.202.10@2933 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2018-03-01 19:56:04 +00:00
parent 2250784163
commit 3e2fdf93c5
+3 -1
View File
@@ -89,10 +89,11 @@
# 150908-1544 - Added debug output for vendor_lead_code duplicate rejections count
# 170531-0837 - Fixed issue #1019
# 180111-1559 - Added anyone_callback_inactive_lists option
# 180301-1453 - Fix to allow for commented(#) lines in filters
#
# constants
$build = '180111-1559';
$build = '180301-1453';
$DB=0; # Debug flag, set to 0 for no debug messages. Can be overriden with CLI --debug flag
$US='__';
$MT[0]='';
@@ -2440,6 +2441,7 @@ foreach(@campaign_id)
else
{
$lead_filter_sql[$i] =~ s/^and|and$|^or|or$|^ and|and $|^ or|or $//gi;
$lead_filter_sql[$i] =~ s/#.*\n//gi;
$lead_filter_sql[$i] =~ s/\r|\n|\t/ /gi;
$lead_filter_sql[$i] = "and ($lead_filter_sql[$i])";
if ($DB) {print " lead filter $lead_filter_id[$i] defined for $campaign_id[$i]\n";}