Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
04ce69d8
Commit
04ce69d8
authored
Nov 23, 2019
by
Carsten Rose
Browse files
Fixes bug that no mime_type_content is called if there is on file.
parent
060075a6
Pipeline
#2758
passed with stages
in 5 minutes and 2 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Classes/Core/Helper/HelperFile.php
View file @
04ce69d8
...
...
@@ -39,7 +39,7 @@ class HelperFile {
}
/**
* Returns a uniq
e
(use for temporary) filename, prefixed with QFQ TMP_FILE_PREFIX
* Returns a uniq (use for temporary) filename, prefixed with QFQ TMP_FILE_PREFIX
*
* @return bool|string
*/
...
...
extension/Classes/Core/Report/Download.php
View file @
04ce69d8
...
...
@@ -516,6 +516,13 @@ class Download {
case
DOWNLOAD_MODE_EXCEL
:
$excel
=
new
Excel
();
$filename
=
$excel
->
process
(
$tmpFiles
,
$tmpData
);
if
(
empty
(
$filename
)
||
!
file_exists
(
$filename
))
{
throw
new
\
DownloadException
(
json_encode
(
[
ERROR_MESSAGE_TO_USER
=>
'Newly created Excel file is broken.'
,
ERROR_MESSAGE_TO_DEVELOPER
=>
"File: '
$filename
''"
]),
ERROR_IO_READ_FILE
);
}
if
(
empty
(
$vars
[
DOWNLOAD_EXPORT_FILENAME
]))
{
if
(
HelperFile
::
isQfqTemp
(
$filename
))
{
$vars
[
DOWNLOAD_EXPORT_FILENAME
]
=
DOWNLOAD_OUTPUT_FILENAME
.
".xlsx"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment