workaround for problem with captcha.

This commit is contained in:
Matthew Wilson 2006-04-17 13:00:51 +00:00
parent 9d750ca1e9
commit 77e7d85408

View file

@ -596,10 +596,11 @@ Renders the form field to HTML as a table row complete with labels, subtext, hov
sub toHtmlWithWrapper {
my $self = shift;
if ($self->passUiLevelCheck) {
my $rawField = $self->toHtml(); # has to be called before prepareWrapper for some controls, namely captcha.
my ($fieldClass, $rowClass, $labelClass, $hoverHelp, $subtext) = $self->prepareWrapper;
return '<tr'.$rowClass.'>
<td'.$labelClass.$hoverHelp.' valign="top" style="width: 180px;"><label for="'.$self->get("id").'">'.$self->get("label").'</label></td>
<td valign="top"'.$fieldClass.' style="width: *;">'.$self->toHtml().$subtext."</td>
<td valign="top"'.$fieldClass.' style="width: *;">'.$rawField.$subtext."</td>
</tr>\n";
} else {
return $self->toHtmlAsHidden;