From: freiphone Date: Mon, 5 Jun 2017 10:07:51 +0000 (+0200) Subject: Bug-Fix X-Git-Tag: release-3.5.4~1048^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c30c60a328930763ff3b68ade38b7a6175e5b9b9;p=kivitendo-erp.git Bug-Fix Klick auf Drucken in der ActionBar löste nur speichern aus, wenn es sich um einen neuen Auftrag handelte. --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 8f4f28ac4..4c2d05916 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -581,9 +581,9 @@ sub form_header { if ($form->{resubmit} && ($form->{format} eq "html")) { $dispatch_to_popup = "window.open('about:blank','Beleg'); document.oe.target = 'Beleg';"; $dispatch_to_popup .= "document.do.submit();"; - } elsif ($form->{resubmit}) { + } elsif ($form->{resubmit} && $form->{action_print}) { # emulate click for resubmitting actions - $dispatch_to_popup = "document.oe.${_}.click(); " for grep { /^action_/ } keys %$form; + $dispatch_to_popup = "kivi.SalesPurchase.show_print_dialog(); kivi.SalesPurchase.print_record();"; } elsif ($creditwarning) { $::request->{layout}->add_javascripts_inline("alert('$credittext');"); }