projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
525758a
)
PrintOptions: keine Warnungen wegen einmaliger Verwendung bekannter Variablen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 28 Feb 2017 10:31:54 +0000
(11:31 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 28 Feb 2017 10:31:54 +0000
(11:31 +0100)
SL/Helper/PrintOptions.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/PrintOptions.pm
b/SL/Helper/PrintOptions.pm
index
a4e1f0e
..
164a5c3
100644
(file)
--- a/
SL/Helper/PrintOptions.pm
+++ b/
SL/Helper/PrintOptions.pm
@@
-18,11
+18,15
@@
sub opthash { +{ value => shift, selected => shift, oname => shift } }
sub get_print_options {
my ($class, %params) = @_;
+ no warnings 'once';
+
my $form = $params{form} || $::form;
my $myconfig = $params{myconfig} || \%::myconfig;
my $locale = $params{locale} || $::locale;
my $options = $params{options};
+ use warnings 'once';
+
my $prefix = $options->{dialog_name_prefix} || '';
# names 3 parameters and returns a hashref, for use in templates