From: Sven Schöling Date: Tue, 1 Sep 2009 08:56:24 +0000 (+0200) Subject: Bugfix: Resubmit bei save_and_print war buggy. X-Git-Tag: release-2.6.1beta1~308 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=05691f2a56789f28c67a7f13caeb2a83b03fd573;p=kivitendo-erp.git Bugfix: Resubmit bei save_and_print war buggy. --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 3884b683c..a2eda3f03 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -121,7 +121,8 @@ sub edit { } if ($form->{print_and_save}) { - $form->{action} = "print"; + $form->{action} = "dispatcher"; + $form->{action_print} = "1"; $form->{resubmit} = 1; $language_id = $form->{language_id}; $printer_id = $form->{printer_id}; @@ -272,6 +273,8 @@ sub form_header { if ($form->{format} eq "html") { $form->{onload} = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; } + # emulate click for resubmitting actions + $form->{onload} .= "document.do.${_}.click(); " for grep { /^action_/ } keys %$form; $form->{onload} .= "document.do.submit();" }