From 94a32127dab6fbe6325bf5b5ecca31f3d20f60ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 17 Jul 2018 14:52:00 +0200 Subject: [PATCH] =?utf8?q?Lieferschein=20l=C3=B6schen,=20mehr=20R=C3=BCckm?= =?utf8?q?eldungen=20an=20die=20Oberfl=C3=A4che=20im=20Fehlerfall?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/do.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index b87fb45d6..76fa8568d 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -941,8 +941,8 @@ sub delete { my $form = $main::form; my %myconfig = %main::myconfig; my $locale = $main::locale; - - if (DO->delete()) { + my $ret; + if ($ret = DO->delete()) { # saving the history if(!exists $form->{addition}) { $form->{snumbers} = qq|donumber_| . $form->{donumber}; @@ -955,7 +955,7 @@ sub delete { $::dispatcher->end_request; } - $form->error($locale->text('Cannot delete delivery order!')); + $form->error($locale->text('Cannot delete delivery order!') . $ret); $main::lxdebug->leave_sub(); } -- 2.20.1