select_tag(): bei 'with_empty' auch wirklich leeres 'value'-Attribut ausgeben
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 12 Mar 2013 11:59:55 +0000 (12:59 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 12 Mar 2013 11:59:55 +0000 (12:59 +0100)
Siehe 0550e83 und 072c821. Fixt #2210.

SL/Presenter/Tag.pm

index 29b57ad..e65ca77 100644 (file)
@@ -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);