fixed bug where shortcuts weren't purged along with assets when both were in the trash
This commit is contained in:
parent
4583ce14fb
commit
4d22e7bcd6
3 changed files with 42 additions and 24 deletions
|
|
@ -1288,6 +1288,8 @@ sub getShortcutsForAssetId {
|
|||
|
||||
$properties->{ joinClass } = 'WebGUI::Asset::Shortcut';
|
||||
$properties->{ whereClause } = 'Shortcut.shortcutToAssetId = ' . $db->quote($assetId);
|
||||
$properties->{ statesToInclude } = ['published', 'trash', 'clipboard', 'clipboard-limbo', 'trash-limbo'];
|
||||
$properties->{ statusToInclude } = ['approved', 'pending', 'archived'];
|
||||
|
||||
return WebGUI::Asset->getRoot($session)->getLineage(['descendants'], $properties);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue