File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Resources/templates/CommonAdmin/ExcelAction Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
52
52
$sheet = $spreadsheet -> setActiveSheetIndex(0 );
53
53
$results = $this -> getResults();
54
54
55
- $suffix = Inflector :: classify($key );
55
+ $suffix = Inflector :: classify($key === null ? ' ' : $key );
56
56
if (! method_exists ($this ," createSpreadsheetHeader$suffix " )) {
57
57
// back to defaults
58
58
$key = null ;
@@ -97,7 +97,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
97
97
$sheet = $phpExcelObject -> setActiveSheetIndex(0 );
98
98
$results = $this -> getResults();
99
99
100
- $suffix = Inflector :: classify($key );
100
+ $suffix = Inflector :: classify($key === null ? ' ' : $key );
101
101
if (! method_exists ($this ," createExcelHeader$suffix " )) {
102
102
// back to defaults
103
103
$key = null ;
You can’t perform that action at this time.
0 commit comments