GridFieldBulkUpoad: Corrected config value check defaults for canAttachExisting and canPreviewFolder

This commit is contained in:
James Cocker 2014-06-10 14:25:56 +01:00
parent 770e5a4231
commit 5403ed81ce

View File

@ -74,13 +74,13 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
//canAttachExisting true/false //canAttachExisting true/false
if ( $reference == 'canAttachExisting' && !is_bool($value) ) if ( $reference == 'canAttachExisting' && !is_bool($value) )
{ {
$value = false; $value = true;
} }
//canPreviewFolder true/false //canPreviewFolder true/false
if ( $reference == 'canPreviewFolder' && !is_bool($value) ) if ( $reference == 'canPreviewFolder' && !is_bool($value) )
{ {
$value = false; $value = true;
} }
$this->config[$reference] = $value; $this->config[$reference] = $value;