From: Moritz Bunkus Date: Mon, 27 Dec 2010 12:49:24 +0000 (+0100) Subject: Select-Optionen: "value" für "0" richtig erzeugen X-Git-Tag: release-2.6.2beta1~64^2~29 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4e27e0011023e09facd5f8e0297be84d8d71cc7;p=kivitendo-erp.git Select-Optionen: "value" für "0" richtig erzeugen Vorher: Jetzt: --- diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 479c4b859..cc0a6ed01 100644 --- 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) . '"'; }