X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main_Mixin.pm;h=212c04e0f520eaf98de00075ff95fd93c0105278;hb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;hp=a0677060ebff9c1bd64ea915661e796706558ddb;hpb=7cfa84ec05dd75cd550cbb2c1ddac4161518fd1e;p=freeside.git diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index a0677060e..212c04e0f 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -539,6 +539,7 @@ sub process_email_search_result { die "error loading FS::$table: $@\n" if $@; my $error = "FS::$table"->email_search_result( $param ); + dbh->commit; # save failed jobs before rethrowing the error die $error if $error; }