mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge remote-tracking branch 'origin/3.0' into 3.1
Conflicts: code/controllers/SilverStripeNavigator.php
This commit is contained in:
commit
53c2059a01
@ -122,11 +122,6 @@ class CMSPageHistoryController extends CMSMain {
|
||||
|
||||
$fields = $fields->makeReadonly();
|
||||
|
||||
foreach($fields->dataFields() as $field) {
|
||||
$field->dontEscape = true;
|
||||
$field->reserveNL = true;
|
||||
}
|
||||
|
||||
if($compareID) {
|
||||
$link = Controller::join_links(
|
||||
$this->Link('show'),
|
||||
|
@ -238,13 +238,13 @@ class SilverStripeNavigatorItem_CMSLink extends SilverStripeNavigatorItem {
|
||||
}
|
||||
|
||||
public function isActive() {
|
||||
return (Controller::curr() instanceof CMSMain);
|
||||
return (Controller::curr() instanceof LeftAndMain);
|
||||
}
|
||||
|
||||
public function canView($member = null) {
|
||||
return (
|
||||
// Don't show in CMS
|
||||
!(Controller::curr() instanceof CMSMain)
|
||||
!(Controller::curr() instanceof LeftAndMain)
|
||||
// Don't follow redirects in preview, they break the CMS editing form
|
||||
&& !($this->record instanceof RedirectorPage)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user