From 066dbf0a499302f18870efcc42fbc60a3f62c081 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 26 Aug 2009 15:58:15 +0200 Subject: [PATCH] Nach dem Speichern Auftrag neu laden, weil die orderitem_ids ansonsten nicht gesetzt sind. --- bin/mozilla/oe.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 3017456d2..094c3cd84 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -38,6 +38,7 @@ use SL::FU; use SL::OE; use SL::IR; use SL::IS; +use SL::MoreCommon qw(ary_diff); use SL::PE; use SL::ReportGenerator; use List::Util qw(max reduce sum); @@ -1092,8 +1093,8 @@ sub save { $form->{simple_save} = 1; if(!$form->{print_and_save}) { - set_headings("edit"); - &update; + delete @{$form}{ary_diff([keys %{ $form }], [qw(login stylesheet id script type)])}; + edit(); exit; } $lxdebug->leave_sub(); -- 2.20.1