]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/gl.pl
Abteilungspflicht für Dialogbuchen: Saubere Fehlermeldung und Behandlung
[mfinanz.git] / 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");