summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}";