From f28b428ae856d08badfc1d9408b87983548eb7e9 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Mon, 19 Nov 2012 16:04:53 +0100 Subject: [PATCH] Parameter "empty_label" von L.select_tag nicht als HTML-Attribut ausgeben. --- SL/Template/Plugin/L.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.20.1