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
|
|
@ -160,9 +160,13 @@ sub paste {
|
|||
if ($self->getId eq $pastedAsset->get("parentId") || $pastedAsset->setParent($self)) {
|
||||
$pastedAsset->publish(['clipboard','clipboard-limbo']); # Paste only clipboard items
|
||||
$pastedAsset->updateHistory("pasted to parent ".$self->getId);
|
||||
|
||||
|
||||
# Update lineage in search index.
|
||||
$pastedAsset->indexContent();
|
||||
my $updateAssets = $pastedAsset->getLineage(['self', 'descendants'], {returnObjects => 1});
|
||||
|
||||
foreach (@{$updateAssets}) {
|
||||
$_->indexContent();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue