summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-30 02:29:04 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-30 02:29:04 +0000
commit15cdd7a96407c035138e18e84921cf6cf415e661 (patch)
tree082cb7f095cf27083c7d8485e3af5a00e66a2b5e
parent771d0ae53b348456623f36461ef7005c655d8c95 (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-xLedgerSMB/Form.pm1
-rwxr-xr-xbin/pos.pl4
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 = ();
diff --git a/bin/pos.pl b/bin/pos.pl
index 35fea78a..873e2a24 100755
--- a/bin/pos.pl
+++ b/bin/pos.pl
@@ -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}";