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:
a30ad33
)
Select-Optionen: "value" für "0" richtig erzeugen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 27 Dec 2010 12:49:24 +0000
(13:49 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 27 Dec 2010 12:49:24 +0000
(13:49 +0100)
Vorher: <option value="">...</option>
Jetzt: <option value="0">...</option>
SL/Template/Plugin/L.pm
patch
|
blob
|
history
diff --git
a/SL/Template/Plugin/L.pm
b/SL/Template/Plugin/L.pm
index
479c4b8
..
cc0a6ed
100644
(file)
--- a/
SL/Template/Plugin/L.pm
+++ b/
SL/Template/Plugin/L.pm
@@
-48,7
+48,7
@@
sub attributes {
my @result = ();
while (my ($name, $value) = each %options) {
next unless $name;
- $value
||= ''
;
+ $value
= '' if !defined($value)
;
push @result, _H($name) . '="' . _H($value) . '"';
}