mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Allowing TRUE vetoes in SiteTree->augmentValidURLSegment() (in addition to the existing FALSE vetoes)
This commit is contained in:
parent
2dd96a4050
commit
922dd126c6
@ -1549,9 +1549,10 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
return false;
|
||||
}
|
||||
|
||||
$values = $this->extend('augmentValidURLSegment');
|
||||
if (count($values) && !min($values)) {
|
||||
return false;
|
||||
$votes = $this->extend('augmentValidURLSegment');
|
||||
if($votes) {
|
||||
$votes = array_filter((array)$votes, 'is_null');
|
||||
if($votes) return min($votes);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user