From: Thomas Heck Date: Mon, 19 Nov 2012 15:04:53 +0000 (+0100) Subject: Parameter "empty_label" von L.select_tag nicht als HTML-Attribut ausgeben. X-Git-Tag: release-3.0.0beta2~11^2^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f28b428ae856d08badfc1d9408b87983548eb7e9;p=kivitendo-erp.git Parameter "empty_label" von L.select_tag nicht als HTML-Attribut ausgeben. --- diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index c25941cbc..742d7db15 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -111,6 +111,8 @@ sub select_tag { my $title_sub = delete($attributes{title_sub}); my $default_sub = delete($attributes{default_sub}); + my $with_empty = delete($attributes{with_empty}); + my $empty_title = delete($attributes{empty_title}); my %selected; @@ -128,8 +130,8 @@ sub select_tag { my @options; - if ( delete($attributes{with_empty}) ) { - push(@options, [undef, $attributes{empty_title} || '']); + if ( $with_empty ) { + push(@options, [undef, $empty_title || '']); } my $normalize_entry = sub {