Let paste also index the descendants of the asset to be pasted.
This commit is contained in:
parent
68fa0161c5
commit
52911b42d5
1 changed files with 6 additions and 2 deletions
|
|
@ -162,7 +162,11 @@ sub paste {
|
||||||
$pastedAsset->updateHistory("pasted to parent ".$self->getId);
|
$pastedAsset->updateHistory("pasted to parent ".$self->getId);
|
||||||
|
|
||||||
# Update lineage in search index.
|
# Update lineage in search index.
|
||||||
$pastedAsset->indexContent();
|
my $updateAssets = $pastedAsset->getLineage(['self', 'descendants'], {returnObjects => 1});
|
||||||
|
|
||||||
|
foreach (@{$updateAssets}) {
|
||||||
|
$_->indexContent();
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue