improvement on addBulkAction function.

It takes into consideration  the $config values passed as function parameters.
This commit is contained in:
daniquilez 2014-05-09 18:09:29 +02:00
parent 43c8b0ee73
commit 4f4d1870ca
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}
}