diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-15 00:54:17 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-15 00:54:17 +0000 |
commit | 2a0e53232d701e7db2f4565f7e31bf88670c021f (patch) | |
tree | e1880e7244640eb5f0c6150411d2beb7df3c1541 | |
parent | 342a09337eaffc1d45eeb7791590603a9b9e1dbf (diff) |
Fixing parts handling so if part is not saved we display error.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@607 4979c152-3d1c-0410-bac9-87ea11338e46
-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; + } } |