fix - Search returns not restricted to chosen path or asset type

This commit is contained in:
Roy Johnson 2006-06-28 14:43:58 +00:00
parent bfd2f7ed59
commit 02fc703a76
2 changed files with 3 additions and 3 deletions

View file

@ -6,4 +6,4 @@
- fix: Can't set View Purchase History Template in commerce settings
- fix: Template toolbar missing for Transaction Error Template
- fix: Page fails and cannot be edited except through the db if custom rich editor deleted.
- fix: Search returns not restricted to chosen path or asset type

View file

@ -133,10 +133,10 @@ sub view {
my $search = WebGUI::Search->new($self->session);
my %rules = (
keywords=>$self->session->form->get("keywords"),
# lineage=>[$self->getValue("searchRoot")]
lineage=>[WebGUI::Asset->newByDynamicClass($self->session,$self->getValue("searchRoot"))->get("lineage")]
);
my @classes = split("\n",$self->get("classLimiter"));
# $rules{classes} = \@classes if (scalar(@classes));
$rules{classes} = \@classes if (scalar(@classes));
$search->search(\%rules);
my @results = ();
my $rs = $search->getResultSet;