BUGFIX: Fix image tracking not working cross subsite (from r88008)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96782 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-12 23:54:29 +00:00
parent 7af4414a02
commit 096bfb2565
2 changed files with 4 additions and 1 deletions

View File

@ -197,7 +197,10 @@ class AssetTableField extends ComplexTableField {
} }
if($childData && $childData->hasMethod('BackLinkTracking')) { if($childData && $childData->hasMethod('BackLinkTracking')) {
if(class_exists('Subsite')) Subsite::disable_subsite_filter(true);
$links = $childData->BackLinkTracking(); $links = $childData->BackLinkTracking();
if(class_exists('Subsite')) Subsite::disable_subsite_filter(false);
if($links->exists()) { if($links->exists()) {
foreach($links as $link) { foreach($links as $link) {
$backlinks[] = "<li><a href=\"admin/show/$link->ID\">" . $link->Breadcrumbs(null,true). "</a></li>"; $backlinks[] = "<li><a href=\"admin/show/$link->ID\">" . $link->Breadcrumbs(null,true). "</a></li>";