X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6ce9fc3a6dd815115cb4a6b29a1edf39b54a87ef..05174f19ea29a44817ef9172c7fbdb7f89212806:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index a47b7e809..3c5282cbe 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -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; }