Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-FormHandler CPAN distribution.

Report information
The Basics
Id: 48898
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: Nobody in particular
Requestors: cub.uanic [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.27006
Fixed in: (no value)



Subject: HTML::FormHandler::Render::Simple : lable should not be displayed, if it's empty
If I want create element without label (label => ""), then I see ":" before element instead of nothing.
Subject: Simple.pm.patch
--- /usr/local/share/perl/5.10.0/HTML/FormHandler/Render/Simple.pm 2009-08-17 20:23:07.000000000 +0300 +++ /tmp/Simple.pm 2009-08-21 06:14:48.000000000 +0300 @@ -342,7 +342,7 @@ sub _label { my ( $self, $field ) = @_; - return '<label class="label" for="' . $field->id . '">' . $field->label . ': </label>'; + return $field->label ? '<label class="label" for="' . $field->id . '">' . $field->label . ': </label>' : ''; } sub render_compound
This is fixed in the repository, and will be fixed in the next release.