Merge branch '3.3' into 3

This commit is contained in:
Daniel Hensby 2016-04-26 02:30:18 +01:00
commit fe17073355
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66
3 changed files with 7 additions and 4 deletions

View File

@ -12,12 +12,14 @@ php:
- 7.0
env:
- DB=MYSQL CORE_RELEASE=3
- DB=MYSQL CORE_RELEASE=3.3
matrix:
include:
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2
allow_failures:
- php: 7.0

View File

@ -88,8 +88,9 @@ class SideReportView extends ViewableData {
}
if(isset($info['link']) && $info['link']) {
$linkBase = singleton('CMSPageEditController')->Link('show') . '/';
$link = ($info['link'] === true) ? $linkBase . $record->ID : $info['link'];
$link = ($info['link'] === true && $record->hasMethod('CMSEditLink'))
? $record->CMSEditLink()
: $info['link'];
return $prefix . "<a $classClause href=\"$link\">$val</a>";
} else {
return $prefix . "<span $classClause>$val</span>";

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=5.3.3",
"php": ">=5.3.3,<7",
"silverstripe/framework": "~3.3"
},
"extra": {