--- Webpacus/lib/Webpacus.pm 2005/12/05 19:15:01 222 +++ Webpacus/lib/Webpacus.pm 2005/12/05 23:15:43 228 @@ -10,11 +10,11 @@ # Static::Simple: will serve static files from the applications root directory # use Catalyst qw/-Debug - Static::Simple Prototype Config::YAML FillInForm SubRequest + Static::Simple /; # FormValidator @@ -67,13 +67,17 @@ $c->stash->{webpacus_version} = $VERSION; - # Forward to View unless response body is already defined - $c->forward('View::TT') unless $c->response->body; - - $c->fillform; # defaults to $c->req->parameters - - $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; -# $c->log->debug( $c->response->body ); + if ($c->response->body) { + $c->log->debug("at end body exists, we won't touch it!"); + } else { + $c->fillform( $c->req->parameters ); + + # Forward to View unless response body is already defined + $c->forward('View::TT'); + + $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; +# $c->log->debug( $c->response->body ); + } }