From fd42eae95b328332c140857716942270272e6eb4 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 16 Mar 2010 00:28:40 +0000 Subject: [PATCH] MINOR: Use castingHelper() rather than castingHelperPair() to look for a field presence. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101091 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }