X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fio.pl;h=2afa3bb2717da10a2c96ed2d268b15c224765f53;hb=c1d8418b5244d224298431369c69ea971a69f3c2;hp=5dde28db1608161fc8efce9f0bd644bcf174b2d7;hpb=4f3393f4faf9b531d48bb97056468eaf5d0676c8;p=kivitendo-erp.git diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 5dde28db1..2afa3bb27 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1109,7 +1109,7 @@ sub validate_items { $lxdebug->enter_sub(); # check if items are valid - if ($form->{rowcount} == 0) { + if ($form->{rowcount} == 1) { &update; exit; } @@ -1313,9 +1313,10 @@ sub edit_e_mail { $form->{"fokus"} = $form->{"email"} ? "Form.subject" : "Form.email"; $form->header; - my (@nh, %nh, @hiddenkeys); - @nh = qw(action email cc bcc subject message formname sendmode format header override); $nh{@nh} = (1)x@nh; - @hidden_keys = grep { !$nh{$_} } grep { !ref $form->{$_} } keys %$form; + my (@dont_hide_key_list, %dont_hide_key, @hidden_keys); + @dont_hide_key_list = qw(action email cc bcc subject message formname sendmode format header override); + @dont_hide_key{@dont_hide_key_list} = (1) x @dont_hide_key_list; + @hidden_keys = grep { !$dont_hide_key{$_} } grep { !ref $form->{$_} } keys %$form; print $form->parse_html_template('generic/edit_email', { title => $title,