mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
API: getModelDataFields() uses className as param
passing the whole gridField was useless and probably not future proof
This commit is contained in:
parent
07f404abf7
commit
205ec30778
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user