Merge pull request #214 from silverstripe-droptables/ssexpress

Tweaks to CMS required for Translatable
This commit is contained in:
Ingo Schommer 2012-10-02 02:10:47 -07:00
commit a6d09988ed
2 changed files with 2 additions and 3 deletions

View File

@ -1576,8 +1576,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;

View File

@ -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