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:
f5db53c
)
HTML-Attribut 'disabled' entfernen, wenn es existiert aber undefiniert ist
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 27 Dec 2010 13:03:47 +0000
(14:03 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 27 Dec 2010 13:03:47 +0000
(14:03 +0100)
Ansonsten erschwert es das Setzen sehr...
SL/Template/Plugin/L.pm
patch
|
blob
|
history
diff --git
a/SL/Template/Plugin/L.pm
b/SL/Template/Plugin/L.pm
index
068fc1a
..
c4f02e6
100644
(file)
--- a/
SL/Template/Plugin/L.pm
+++ b/
SL/Template/Plugin/L.pm
@@
-61,6
+61,7
@@
sub attributes {
my @result = ();
while (my ($name, $value) = each %options) {
next unless $name;
+ next if $name eq 'disabled' && !$value;
$value = '' if !defined($value);
push @result, _H($name) . '="' . _H($value) . '"';
}