Skip to content

Commit

Permalink
Merge pull request #33 from einhverfr/1.3
Browse files Browse the repository at this point in the history
1.3/1.4 fix for internal server errors using cash/payment
  • Loading branch information
einhverfr committed Apr 28, 2014
2 parents 7bc8712 + 69cb71c commit 85e6f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog for 1.3.40
* Updated nginx configuration (Pongracz I)
* GL account search now will search within descriptions for matches (Chris T)
* Printing without an invoice number now errors instead of increments (Chris T)
* Fixed internal server error using cash/payment (Chris T)

Changelog for 1.3.39
* Fixed Internal Server Error clicking through ar/ap report (Chris T, 1022)
Expand Down
3 changes: 3 additions & 0 deletions LedgerSMB/DBObject/Payment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ sub post_payment {
$self->error($self->{_locale}->text("Exchange rate inconsistency with database. Got [_1], expected [_2]", $self->{exrate}, $db_exchangerate));
}
}
for (@{$self->{amount}}){
$_ = $_->bstr if ref $_;
}
my @TMParray = $self->exec_method(funcname => 'payment_post');
$self->{dbh}->commit();
$self->{payment_id} = $TMParray[0]->{payment_post};
Expand Down

0 comments on commit 85e6f16

Please sign in to comment.