From: Moritz Bunkus Date: Tue, 12 Mar 2013 11:59:55 +0000 (+0100) Subject: select_tag(): bei 'with_empty' auch wirklich leeres 'value'-Attribut ausgeben X-Git-Tag: release-3.1.0beta1~526 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/081e2bbcae187497b961a1d19d856c8da6e6204b select_tag(): bei 'with_empty' auch wirklich leeres 'value'-Attribut ausgeben Siehe 0550e83 und 072c821. Fixt #2210. --- diff --git a/SL/Presenter/Tag.pm b/SL/Presenter/Tag.pm index 29b57ad5d..e65ca7722 100644 --- a/SL/Presenter/Tag.pm +++ b/SL/Presenter/Tag.pm @@ -158,7 +158,7 @@ sub select_tag { }; my $code = ''; - $code .= $self->html_tag('option', $self->escape($empty_title || '')) if $with_empty; + $code .= $self->html_tag('option', $self->escape($empty_title || ''), value => '') if $with_empty; if (!$with_optgroups) { $code .= $list_to_code->($collection);