From 4e5271f5270921b769dfc2e4462777cbb4694ef9 Mon Sep 17 00:00:00 2001 From: colymba Date: Thu, 9 Aug 2012 20:25:08 +0300 Subject: [PATCH] FIX: fix field class detection using the action function that returns the class... --- code/GridFieldBulkEditingHelper.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/GridFieldBulkEditingHelper.php b/code/GridFieldBulkEditingHelper.php index cdb07be..3c420a7 100644 --- a/code/GridFieldBulkEditingHelper.php +++ b/code/GridFieldBulkEditingHelper.php @@ -56,14 +56,13 @@ class GridFieldBulkEditingHelper { unset( $dataFields[str_ireplace('ID', '', $config['imageFieldName']) ] ); } } - + //if class blacklist filter if ( count($config['fieldsClassBlacklist']) > 0 ) { foreach ($dataFields as $fieldName => $field) { - //@TODO find PHP function that return the classname - if ( in_array($field->ClassName, $config['fieldsClassBlacklist']) ) + if ( in_array(get_class($field), $config['fieldsClassBlacklist']) ) { array_push($config['fieldsNameBlacklist'], $fieldName); }