mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUG: Remove the is_null check on augmentValidURLSegment
Object::extend already does a check for NULL before it adds the results to the array of return values. This was required for Translatable as the result from Translatable::augmentValidURLSegment was being ignored.
This commit is contained in:
parent
7316f96190
commit
9cf5a6f47a
@ -1580,8 +1580,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
|
||||
$votes = $this->extend('augmentValidURLSegment');
|
||||
if($votes) {
|
||||
$votes = array_filter((array)$votes, 'is_null');
|
||||
if($votes) return min($votes);
|
||||
return min($votes);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user