diff options
-rwxr-xr-x | LedgerSMB/GL.pm | 1 | ||||
-rwxr-xr-x | bin/ic.pl | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm index 8d31c453..f9f33493 100755 --- a/LedgerSMB/GL.pm +++ b/LedgerSMB/GL.pm @@ -202,7 +202,6 @@ sub post_transaction { # commit and redirect my $rc = $dbh->commit; - $dbh->disconnect; $rc; } @@ -3013,8 +3013,12 @@ sub save { $form->{callback} = $callback; } - # redirect - $form->redirect; + if ($rc){ + # redirect + $form->redirect("Part Saved"); + } else { + $form->error; + } } |