From 7ee247e6dfdf6f6f70518e21fddd33af93a824b3 Mon Sep 17 00:00:00 2001 From: hirenpatel Date: Tue, 29 Nov 2016 21:30:30 +0000 Subject: [PATCH] Bug fixes --- code/GridFieldOrderableRows.php | 2 +- .../Forms/GridField => }/GridFieldOrderableRowsDragHandle.ss | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename templates/{SilverStripe/Forms/GridField => }/GridFieldOrderableRowsDragHandle.ss (100%) diff --git a/code/GridFieldOrderableRows.php b/code/GridFieldOrderableRows.php index dd3cb2c..238b7f0 100755 --- a/code/GridFieldOrderableRows.php +++ b/code/GridFieldOrderableRows.php @@ -180,7 +180,7 @@ class GridFieldOrderableRows extends RequestHandler implements $classes = ClassInfo::dataClassesFor($list->dataClass()); foreach($classes as $class) { - if(singleton($class)->hasOwnTableDatabaseField($field)) { + if(singleton($class)->hasDataBaseField($field)) { return $class; } } diff --git a/templates/SilverStripe/Forms/GridField/GridFieldOrderableRowsDragHandle.ss b/templates/GridFieldOrderableRowsDragHandle.ss similarity index 100% rename from templates/SilverStripe/Forms/GridField/GridFieldOrderableRowsDragHandle.ss rename to templates/GridFieldOrderableRowsDragHandle.ss