API: getModelDataFields() uses className as param

passing the whole gridField was useless and probably not future proof
This commit is contained in:
colymba 2012-07-25 21:30:43 +03:00
parent 07f404abf7
commit 205ec30778

View File

@ -8,9 +8,8 @@
class GridFieldBulkEditingTools {
//put your code here
public static function getModelDataFields ( $gridfield )
public static function getModelDataFields ( $modelClass )
{
$modelClass = $gridfield->list->dataClass;
$cmsFields = singleton($modelClass)->getCMSFields();
$fields = $cmsFields->dataFields();