Commit 495dce88 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] keep image of nominee on save

KUDOS Nicole Cordes
parent 1c938b59
......@@ -80,15 +80,11 @@ class UploadViewHelper extends CoreUploadViewHelper
if ($this->getMappingResultsForProperty()->hasErrors()) {
return null;
}
$resource = $this->getValue(false);
$resource = $this->getValueAttribute();
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);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment