mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
API CHANGE: Removed context object - it's a hack.
This commit is contained in:
parent
488a04c670
commit
afcacde5df
@ -1378,8 +1378,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$this->URLSegment = $segment;
|
$this->URLSegment = $segment;
|
||||||
}
|
}
|
||||||
|
|
||||||
DataObject::set_context_obj($this);
|
|
||||||
|
|
||||||
// Ensure that this object has a non-conflicting URLSegment value.
|
// Ensure that this object has a non-conflicting URLSegment value.
|
||||||
$count = 2;
|
$count = 2;
|
||||||
while(!$this->validURLSegment()) {
|
while(!$this->validURLSegment()) {
|
||||||
@ -1387,8 +1385,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
DataObject::set_context_obj(null);
|
|
||||||
|
|
||||||
$this->syncLinkTracking();
|
$this->syncLinkTracking();
|
||||||
|
|
||||||
// Check to see if we've only altered fields that shouldn't affect versioning
|
// Check to see if we've only altered fields that shouldn't affect versioning
|
||||||
|
Loading…
Reference in New Issue
Block a user