Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
495dce88
Commit
495dce88
authored
Mar 13, 2019
by
Stefan Busemann
Browse files
[BUGFIX] keep image of nominee on save
KUDOS Nicole Cordes
parent
1c938b59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/ViewHelper/Form/UploadViewHelper.php
View file @
495dce88
...
...
@@ -80,15 +80,11 @@ class UploadViewHelper extends CoreUploadViewHelper
if
(
$this
->
getMappingResultsForProperty
()
->
hasErrors
())
{
return
null
;
}
$resource
=
$this
->
getValue
(
false
);
$resource
=
$this
->
getValue
Attribute
(
);
if
(
$resource
instanceof
\
TYPO3\CMS\Extbase\Domain\Model\FileReference
)
{
return
$resource
;
}
return
$this
->
propertyMapper
->
convert
(
$resource
,
FileReference
::
class
);
}
private
function
getValue
(
$param
){
//TODO
return
null
;
return
$this
->
propertyMapper
->
convert
(
$resource
,
FileReference
::
class
);
}
}
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