]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/is.pl
Abteilungen in Belegen sind nun Pflichtfelder, wenn der Benutzer das Flag "mandatory_...
[mfinanz.git] / bin / mozilla / is.pl
index a47b7e80911d478f2368e035818a9309a625f77b..3c5282cbe4bdcb6aec0972563cdbb160ed9e3bd4 100644 (file)
@@ -654,6 +654,13 @@ sub post {
     &update;
     exit;
   }
+
+  if ($myconfig{mandatory_departments} && !$form->{department_id}) {
+    $form->{saved_message} = $::locale->text('You have to specify a department.');
+    update();
+    exit;
+  }
+
   if ($form->{second_run}) {
     $form->{print_and_post} = 0;
   }