mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge remote branch 'origin/master' into translation-staging
This commit is contained in:
commit
3cb30a9319
@ -6,7 +6,8 @@ class CMSSettingsController extends LeftAndMain {
|
|||||||
static $menu_priority = -1;
|
static $menu_priority = -1;
|
||||||
static $menu_title = 'Settings';
|
static $menu_title = 'Settings';
|
||||||
static $tree_class = 'SiteConfig';
|
static $tree_class = 'SiteConfig';
|
||||||
|
static $required_permission_codes = array('EDIT_SITECONFIG');
|
||||||
|
|
||||||
public function getResponseNegotiator() {
|
public function getResponseNegotiator() {
|
||||||
$neg = parent::getResponseNegotiator();
|
$neg = parent::getResponseNegotiator();
|
||||||
$controller = $this;
|
$controller = $this;
|
||||||
|
@ -1569,8 +1569,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
|
|
||||||
$votes = $this->extend('augmentValidURLSegment');
|
$votes = $this->extend('augmentValidURLSegment');
|
||||||
if($votes) {
|
if($votes) {
|
||||||
$votes = array_filter((array)$votes, 'is_null');
|
return min($votes);
|
||||||
if($votes) return min($votes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Input validation on the URLSegment field
|
* Input validation on the URLSegment field
|
||||||
*/
|
*/
|
||||||
$('.field.urlsegment').entwine({
|
$('.field.urlsegment:not(.readonly)').entwine({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor: onmatch
|
* Constructor: onmatch
|
||||||
|
Loading…
Reference in New Issue
Block a user