Fixed a search bug.

This commit is contained in:
JT Smith 2002-12-12 06:37:43 +00:00
parent a452a022f3
commit 412706f763
2 changed files with 2 additions and 2 deletions

View file

@ -323,7 +323,7 @@ sub www_view {
$var{"post.url"} = WebGUI::URL::page('func=editSubmission&sid=new&wid='.$_[0]->get("wobjectId"));
$var{"post.label"} = WebGUI::International::get(20,$namespace);
$var{"search.label"} = WebGUI::International::get(364);
$var{"search.Form"} = WebGUI::Search::form({wid=>"$session{form}{wid}",func=>'view',search=>1});
$var{"search.Form"} = WebGUI::Search::form({wid=>$_[0]->get("wobjectId"),func=>'view',search=>1});
$var{"search.url"} = WebGUI::Search::toggleURL();
if ($session{scratch}{search}) {
$numResults = $session{scratch}{numResults};