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:
f9c3e03
)
Parameter "empty_label" von L.select_tag nicht als HTML-Attribut ausgeben.
author
Thomas Heck
<theck@linet-services.de>
Mon, 19 Nov 2012 15:04:53 +0000
(16:04 +0100)
committer
Thomas Heck
<theck@linet-services.de>
Mon, 19 Nov 2012 15:04:53 +0000
(16:04 +0100)
SL/Template/Plugin/L.pm
patch
|
blob
|
history
diff --git
a/SL/Template/Plugin/L.pm
b/SL/Template/Plugin/L.pm
index
c25941c
..
742d7db
100644
(file)
--- 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 {