mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX: fix field class detection
using the action function that returns the class...
This commit is contained in:
parent
b8a0a1e14f
commit
4e5271f527
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user