Skip to content

Commit

Permalink
Merge pull request silverstripe#59 from daniquilez/master
Browse files Browse the repository at this point in the history
improvement on addBulkAction function.
  • Loading branch information
colymba committed May 9, 2014
2 parents 43c8b0e + 4f4d187 commit f259a4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/GridFieldBulkManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ function addBulkAction($name, $label = null, $handler = null, $config = null)
}
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
);
}

Expand Down Expand Up @@ -379,4 +379,4 @@ public function handlebulkaction($gridField, $request)

user_error("Unable to find matching bulk action handler for ".$request->remaining().'.', E_USER_ERROR);
}
}
}

0 comments on commit f259a4a

Please sign in to comment.