From: Moritz Bunkus Date: Fri, 3 May 2013 11:26:53 +0000 (+0200) Subject: L.radio_button_tag: value="" ermöglichen X-Git-Tag: release-3.1.0beta1~424 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5324155e7bc22990d1d0a775bc64e47b867f9b4d;p=kivitendo-erp.git L.radio_button_tag: value="" ermöglichen --- diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 95f4ce1d0..d9deef78e 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -116,7 +116,7 @@ sub radio_button_tag { my ($self, $name, %attributes) = _hashify(2, @_); _set_id_attribute(\%attributes, $name); - $attributes{value} = 1 unless defined $attributes{value}; + $attributes{value} = 1 unless exists $attributes{value}; my $label = delete $attributes{label}; if ($attributes{checked}) {