Skip to content

Commit

Permalink
Merge pull request ledgersmb#456 from einhverfr/1.3
Browse files Browse the repository at this point in the history
fixing internal server error on single payment interface
  • Loading branch information
einhverfr committed Oct 16, 2014
2 parents d66af6a + 475b0b9 commit 354416a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Changelog for 1.3.45
* Fixed bug 1244, manually entered tax crashes invoice on edit (Chris T)
* Fixed bug 1251, some backports failing due to misplacing db cnx (Chris T)
* Fixed bug 1241, join projection, amounts in invoice details report (Chris T)
* Fixed internal server error on single payment interface (Chris T)

Chris T is Chris Travers

Expand Down
1 change: 1 addition & 0 deletions LedgerSMB/DBObject/Payment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ sub post_payment {
for ($self->_parse_array($self->{amount})){
$_ = $_->bstr if ref $_;
}
$self->{amount} = [map {ref $_ ? $_->bstr() : $_ } @{$self->{amount}}];
my @TMParray = $self->exec_method(funcname => 'payment_post');
$self->{dbh}->commit();
$self->{payment_id} = $TMParray[0]->{payment_post};
Expand Down

0 comments on commit 354416a

Please sign in to comment.