From 77e7d85408742779536827c71198ff41a82e74bf Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Mon, 17 Apr 2006 13:00:51 +0000 Subject: [PATCH] workaround for problem with captcha. --- lib/WebGUI/Form/Control.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Form/Control.pm b/lib/WebGUI/Form/Control.pm index a13296ee2..cc87cdeb8 100644 --- a/lib/WebGUI/Form/Control.pm +++ b/lib/WebGUI/Form/Control.pm @@ -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 ' - '.$self->toHtml().$subtext." + '.$rawField.$subtext." \n"; } else { return $self->toHtmlAsHidden;