mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-30 05:09:07 +02:00
API make DataObject::validate public
See https://github.com/silverstripe/silverstripe-framework/pull/4294
This commit is contained in:
parent
dd49a888e8
commit
4aa84f3dd2
@ -1628,7 +1628,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$this->_cache_statusFlags = null;
|
$this->_cache_statusFlags = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function validate() {
|
public function validate() {
|
||||||
$result = parent::validate();
|
$result = parent::validate();
|
||||||
|
|
||||||
// Allowed children validation
|
// Allowed children validation
|
||||||
|
@ -344,7 +344,7 @@ class VirtualPage extends Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function validate() {
|
public function validate() {
|
||||||
$result = parent::validate();
|
$result = parent::validate();
|
||||||
|
|
||||||
// "Can be root" validation
|
// "Can be root" validation
|
||||||
|
Loading…
Reference in New Issue
Block a user