mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1215 from tractorcow/pulls/3.2/fix-public-validate
API Revert DataObject::validate to 3.1 method signature (protected)
This commit is contained in:
commit
0a30972e6b
@ -1625,7 +1625,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
$this->_cache_statusFlags = null;
|
||||
}
|
||||
|
||||
public function validate() {
|
||||
protected function validate() {
|
||||
$result = parent::validate();
|
||||
|
||||
// Allowed children validation
|
||||
|
@ -344,7 +344,7 @@ class VirtualPage extends Page {
|
||||
}
|
||||
}
|
||||
|
||||
public function validate() {
|
||||
protected function validate() {
|
||||
$result = parent::validate();
|
||||
|
||||
// "Can be root" validation
|
||||
|
Loading…
Reference in New Issue
Block a user