From: Jan Büren Date: Tue, 17 Jul 2018 12:52:00 +0000 (+0200) Subject: Lieferschein löschen, mehr Rückmeldungen an die Oberfläche im Fehlerfall X-Git-Tag: release-3.5.4~351 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=94a32127dab6fbe6325bf5b5ecca31f3d20f60ab;p=kivitendo-erp.git Lieferschein löschen, mehr Rückmeldungen an die Oberfläche im Fehlerfall --- 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(); }