diff --git a/code/CMSMain.php b/code/CMSMain.php index 3862c655..35d8cd03 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -562,7 +562,7 @@ JS; // DataObject::fieldExists only checks the current class, not the hierarchy // This allows the CMS to set the correct sort value - if($newItem->castingHelperPair('Sort')) { + if($newItem->castingHelper('Sort')) { $newItem->Sort = DB::query("SELECT MAX(\"Sort\") FROM \"SiteTree\" WHERE \"ParentID\" = '" . Convert::raw2sql($parentID) . "'")->value() + 1; }