FIX #168 Remove leftover firstAction

This commit is contained in:
Thierry François 2018-03-01 10:12:19 +02:00
parent b97971967f
commit 9e9cb46d74
2 changed files with 1 additions and 4 deletions

View File

@ -289,9 +289,7 @@ class BulkManager implements GridField_HTMLProvider, GridField_ColumnProvider, G
'Button' => array( 'Button' => array(
'Label' => _t('GRIDFIELD_BULK_MANAGER.ACTION_BTN_LABEL', 'Go'), 'Label' => _t('GRIDFIELD_BULK_MANAGER.ACTION_BTN_LABEL', 'Go'),
'DataURL' => $gridField->Link('bulkAction'), 'DataURL' => $gridField->Link('bulkAction'),
'Icon' => $actionsConfig[$firstAction]['icon'], 'DataConfig' => json_encode($actionsConfig)
//'Classes' => $buttonClasses,
'DataConfig' => json_encode($actionsConfig),
), ),
'Select' => array( 'Select' => array(
'Label' => _t('GRIDFIELD_BULK_MANAGER.SELECT_ALL_LABEL', 'Select all'), 'Label' => _t('GRIDFIELD_BULK_MANAGER.SELECT_ALL_LABEL', 'Select all'),

View File

@ -7,7 +7,6 @@
data-config="$Button.DataConfig" data-config="$Button.DataConfig"
title="<% _t('GRIDFIELD_BULK_MANAGER.COMPONENT_TITLE', 'Modify one or more entry at a time') %>" title="<% _t('GRIDFIELD_BULK_MANAGER.COMPONENT_TITLE', 'Modify one or more entry at a time') %>"
class="doBulkActionButton disabled btn btn-outline-secondary"> class="doBulkActionButton disabled btn btn-outline-secondary">
<% if $Button.Icon %><img src="$Button.Icon" alt="" /><% end_if %>
$Button.Label $Button.Label
</a> </a>