Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Changes for > 7.6.2 #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Classes/Domain/Model/FileReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ class FileReference extends \TYPO3\CMS\Extbase\Domain\Model\FileReference {
protected $originalFileIdentifier;

/**
* @param \TYPO3\CMS\Core\Resource\FileReference $originalResource
*/
public function setOriginalResource(\TYPO3\CMS\Core\Resource\FileReference $originalResource) {
$this->originalResource = $originalResource;
$this->originalFileIdentifier = (int)$originalResource->getOriginalFile()->getUid();
}
* @param \TYPO3\CMS\Core\Resource\ResourceInterface $originalResource
*/
public function setOriginalResource(\TYPO3\CMS\Core\Resource\ResourceInterface $originalResource)
{
$this->originalResource = $originalResource;
if(is_a($originalResource,'\TYPO3\CMS\Core\Resource\FileReference')){
$this->originalFileIdentifier = (int)$originalResource->getOriginalFile()->getUid();
}
}
}