FIX #61 check length of array for bulkManager check
This commit is contained in:
parent
8836b2e389
commit
1fefcad1e3
|
@ -224,7 +224,7 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
|
||||||
->setAttribute('data-icon', 'arrow-circle-double')
|
->setAttribute('data-icon', 'arrow-circle-double')
|
||||||
->setUseButtonTag(true);
|
->setUseButtonTag(true);
|
||||||
|
|
||||||
if ( $bulkManager )
|
if ( count($bulkManager) )
|
||||||
{
|
{
|
||||||
$cancelButton = FormAction::create('Cancel', _t('GRIDFIELD_BULK_UPLOAD.CANCEL_BTN_LABEL', 'Cancel'))
|
$cancelButton = FormAction::create('Cancel', _t('GRIDFIELD_BULK_UPLOAD.CANCEL_BTN_LABEL', 'Cancel'))
|
||||||
->addExtraClass('bulkUploadCancelButton ss-ui-action-destructive')
|
->addExtraClass('bulkUploadCancelButton ss-ui-action-destructive')
|
||||||
|
|
Loading…
Reference in New Issue