diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-30 02:29:04 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-30 02:29:04 +0000 |
commit | 15cdd7a96407c035138e18e84921cf6cf415e661 (patch) | |
tree | 082cb7f095cf27083c7d8485e3af5a00e66a2b5e | |
parent | 771d0ae53b348456623f36461ef7005c655d8c95 (diff) |
Correcting improper redirect when reposting POS invoices.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1825 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/Form.pm | 1 | ||||
-rwxr-xr-x | bin/pos.pl | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index c26fcc1f..3422e2ac 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -1260,7 +1260,6 @@ sub format_line { sub cleanup { my $self = shift; - chdir("$self->{tmpdir}"); my @err = (); @@ -174,7 +174,9 @@ sub openinvoices { sub edit { $form->{title} = $locale->text('Edit POS Invoice'); - + if (!$form->{nextsub}){ + $form->{nextsub} = 'add'; + } $form->{callback} = "$form->{script}?action=$form->{nextsub}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}"; |