X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/762f348476e09df5619fa11d7ec070209cb843f4..abc355d2775cda30c745a277faf1307acb5a249b:/SL/Helper/PrintOptions.pm diff --git a/SL/Helper/PrintOptions.pm b/SL/Helper/PrintOptions.pm index 7569ea687..a4e1f0ef5 100644 --- a/SL/Helper/PrintOptions.pm +++ b/SL/Helper/PrintOptions.pm @@ -4,6 +4,7 @@ use strict; use List::MoreUtils qw(any); +sub opthash { +{ value => shift, selected => shift, oname => shift } } # generate the printing options displayed at the bottom of oe and is forms. # this function will attempt to guess what type of form is displayed, and will generate according options @@ -25,7 +26,6 @@ sub get_print_options { my $prefix = $options->{dialog_name_prefix} || ''; # names 3 parameters and returns a hashref, for use in templates - sub opthash { +{ value => shift, selected => shift, oname => shift } } my (@FORMNAME, @LANGUAGE_ID, @FORMAT, @SENDMODE, @MEDIA, @PRINTER_ID, @SELECTS) = (); # note: "||"-selection is only correct for values where "0" is _not_ a correct entry