mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Merge pull request #1 from daniquilez/patch-1
addBulkAction improvement
This commit is contained in:
commit
c1ef805a5b
@ -211,9 +211,9 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
|
||||
}
|
||||
else{
|
||||
$config = array(
|
||||
'isAjax' => true,
|
||||
'icon' => 'accept',
|
||||
'isDestructive' => false
|
||||
'isAjax' => isset($config['isAjax']) ? $config['isAjax'] : true,
|
||||
'icon' => isset($config['icon']) ? $config['icon'] : 'accept',
|
||||
'isDestructive' => isset($config['isDestructive']) ? $config['isDestructive'] : false
|
||||
);
|
||||
}
|
||||
|
||||
@ -379,4 +379,4 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
|
||||
|
||||
user_error("Unable to find matching bulk action handler for ".$request->remaining().'.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user