diff options
-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}"; |