Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
26517504
Commit
26517504
authored
Sep 01, 2019
by
Carsten Rose
Browse files
Refs #7849. Complain about a file which does not exist
parent
44b7d693
Pipeline
#2329
passed with stages
in 2 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/AbstractBuildForm.php
View file @
26517504
...
...
@@ -3136,7 +3136,7 @@ abstract class AbstractBuildForm {
}
$deleteButton
=
Support
::
wrapTag
(
"<button type='button' class='btn btn-default delete-file
$disabled
'
$disabled
data-sip='
$sipUpload
' name='delete-
$htmlFormElementName
'>"
,
$this
->
symbol
[
SYMBOL_DELETE
]
.
$trashText
);
if
(
Support
::
isEnabled
(
$formElement
,
FE_FILE_DOWNLOAD_BUTTON
))
{
if
(
!
empty
(
$value
)
&&
Support
::
isEnabled
(
$formElement
,
FE_FILE_DOWNLOAD_BUTTON
))
{
if
(
is_readable
(
$value
))
{
$link
=
new
Link
(
$this
->
sip
,
$this
->
dbIndexData
);
$value
=
$link
->
renderLink
(
's|M:file|d|F:'
.
$value
.
'|'
.
$this
->
evaluate
->
parse
(
$formElement
[
FE_FILE_DOWNLOAD_BUTTON
]));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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