summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/GL.pm1
-rwxr-xr-xbin/ic.pl8
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;
}
diff --git a/bin/ic.pl b/bin/ic.pl
index 8cc8f5f5..c1a5b27d 100755
--- a/bin/ic.pl
+++ b/bin/ic.pl
@@ -3013,8 +3013,12 @@ sub save {
$form->{callback} = $callback;
}
- # redirect
- $form->redirect;
+ if ($rc){
+ # redirect
+ $form->redirect("Part Saved");
+ } else {
+ $form->error;
+ }
}