BUG Extended previous fix to GridFieldBulkManager

This commit is contained in:
Damian Mooyman 2012-11-22 18:17:16 -08:00
parent 447ab87601
commit c623c95111

View File

@ -44,8 +44,10 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
*/
function setConfig ( $reference, $value )
{
if ( isset( $this->config[$reference] ) )
{
if (!key_exists($reference, $this->config) ) {
user_error("Unknown option reference: $reference", E_USER_ERROR);
}
if ( ($reference == 'fieldsClassBlacklist' || $reference == 'fieldsClassBlacklist' || $reference == 'editableFields') && !is_array($value) )
{
$value = array($value);
@ -59,7 +61,6 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
$this->config[$reference] = $value;
}
}
/**
* Returns one $config parameter of the full $config