Moose overriding for indexContent.
This commit is contained in:
parent
953df9d6a9
commit
c786395eb4
13 changed files with 65 additions and 52 deletions
|
|
@ -319,11 +319,12 @@ Indexing question and answers. See WebGUI::Asset::indexContent() for additonal d
|
|||
|
||||
=cut
|
||||
|
||||
sub indexContent {
|
||||
around indexContent => sub {
|
||||
my $orig = shift;
|
||||
my $self = shift;
|
||||
my $indexer = $self->SUPER::indexContent;
|
||||
my $indexer = $self->$orig(@_);
|
||||
$indexer->addKeywords($self->get("question")." ".$self->get("answers"));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue