diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index f66c60873..06f127763 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1,4 +1,5 @@ Priority) || + (($this->Priority < 0) || ($this->Priority > 1))) + $this->Priority = self::$defaults['Priority']; + parent::onBeforeWrite(); }