Skip to content

Commit

Permalink
Fix. bug ledgersmb#1186 - doubled email addresses in emailing invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
pongraczi committed Aug 24, 2014
1 parent 161f7e7 commit 571a10a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion LedgerSMB/AA.pm
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1358,10 +1358,17 @@ sub get_name {
16 => 'cc',
17 => 'bcc' );
$sth = $dbh->prepare($query);
$sth->execute( $form->{eca_id}, 17) || $self->dberror( $query );
$sth->execute( $form->{eca_id}, 17) || $form->dberror( $query );

my $ctype;
my $billing_email = 0;

# Set these variables to empty, otherwise in some cases it keeps earlier values and cause doubled
# values, ie. when emailing invoice
$form->{email} = '';
$form->{cc} = '';
$form->{bcc} = '';

while ( $ref = $sth->fetchrow_hashref('NAME_lc') ) {
$ctype = $ref->{class_id};
$ctype = $id_map{$ctype};
Expand Down

0 comments on commit 571a10a

Please sign in to comment.