From b8d23827032a5a0cd16c9e3e95b59595d9119cd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 17 Jul 2017 15:19:43 +0200 Subject: [PATCH] =?utf8?q?Abteilungspflicht=20f=C3=BCr=20Dialogbuchen:=20S?= =?utf8?q?aubere=20Fehlermeldung=20und=20Behandlung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/gl.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 91a15c218..676611682 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -1339,9 +1339,7 @@ sub post { my $locale = $main::locale; if ($::myconfig{mandatory_departments} && !$form->{department_id}) { - $form->{saved_message} = $::locale->text('You have to specify a department.'); - update(); - exit; + $form->error($locale->text('You have to specify a department.')); } $form->{title} = $locale->text("$form->{title} General Ledger Transaction"); -- 2.20.1