]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Abteilungspflicht für Dialogbuchen: Saubere Fehlermeldung und Behandlung
authorJan Büren <jan@kivitendo-premium.de>
Mon, 17 Jul 2017 13:19:43 +0000 (15:19 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 17 Jul 2017 13:19:43 +0000 (15:19 +0200)
bin/mozilla/gl.pl

index 91a15c218b76bb7ca4baca66e2500c241310490d..676611682e34856fa309ff24a62e2c246aa986fa 100644 (file)
@@ -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");