fix - Search returns not restricted to chosen path or asset type
This commit is contained in:
parent
bfd2f7ed59
commit
02fc703a76
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue