X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d38565357c95d74fb29772d4f8a35d9727623a8b..b8d23827032a5a0cd16c9e3e95b59595d9119cd4:/bin/mozilla/gl.pl 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");