mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Fix image tracking not working cross subsite (from r88008) (from r96782)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102476 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b7a1e438f7
commit
b9c6f7a314
@ -197,7 +197,10 @@ class AssetTableField extends ComplexTableField {
|
||||
}
|
||||
|
||||
if($childData && $childData->hasMethod('BackLinkTracking')) {
|
||||
if(class_exists('Subsite')) Subsite::disable_subsite_filter(true);
|
||||
$links = $childData->BackLinkTracking();
|
||||
if(class_exists('Subsite')) Subsite::disable_subsite_filter(false);
|
||||
|
||||
if($links->exists()) {
|
||||
foreach($links as $link) {
|
||||
$backlinks[] = "<li><a href=\"admin/show/$link->ID\">" . $link->Breadcrumbs(null,true). "</a></li>";
|
||||
|
Loading…
Reference in New Issue
Block a user