[Catalyst-commits] r8516 -
CatalystX-CRUD/CatalystX-CRUD-Controller-RHTMLO/trunk/lib/CatalystX/CRUD/Controller
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Thu Oct 9 22:08:09 BST 2008
Author: karpet
Date: 2008-10-09 22:08:09 +0100 (Thu, 09 Oct 2008)
New Revision: 8516
Modified:
CatalystX-CRUD/CatalystX-CRUD-Controller-RHTMLO/trunk/lib/CatalystX/CRUD/Controller/RHTMLO.pm
Log:
clear form explicitly if no search params
Modified: CatalystX-CRUD/CatalystX-CRUD-Controller-RHTMLO/trunk/lib/CatalystX/CRUD/Controller/RHTMLO.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-Controller-RHTMLO/trunk/lib/CatalystX/CRUD/Controller/RHTMLO.pm 2008-10-08 15:34:35 UTC (rev 8515)
+++ CatalystX-CRUD/CatalystX-CRUD-Controller-RHTMLO/trunk/lib/CatalystX/CRUD/Controller/RHTMLO.pm 2008-10-09 21:08:09 UTC (rev 8516)
@@ -148,6 +148,10 @@
# if we have no input, just return for initial search
if ( !@arg && !$c->req->param && $c->action->name eq 'search' ) {
$c->log->debug("no input to search. return") if $c->debug;
+ # must clear explicitly since this is a new search
+ # and form may have been initialized elsewhere
+ $c->stash->{form}->clear;
+ $c->log->debug("rhtmlo form cleared") if $c->debug;
return;
}
More information about the Catalyst-commits
mailing list