Project

General

Profile

Actions

Bug #39955

closed

FILES TS Object is not able to deal with comma separated lists for references

Added by Marcel Burkhalter over 12 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-08-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

According to Steffen Ritter, the references property should be able to take in a comma separated list of sys_file_reference UID's (currently not documented, see also http://forge.typo3.org/issues/34137).

But the following TS produces an exception:
10 = FILES
10 {
references = 188,189
renderObj = TEXT
renderObj.data = file:current:publicUrl
}

#1316889798: uid of record has to be numeric

InvalidArgumentException thrown in file
/var/www/vhosts/_SHARED_T3_SRC/6.0.x/typo3_src-git-master/t3lib/file/Repository/FileRepository.php in line 240.

t3lib_file_Repository_FileRepository::findFileReferenceByUid("188,189")

Adding the following TS line resolves the issue:
references.listNum = 0

Btw: As documented, it works for files, e.g.:

10 = FILES
10 {
files = 1,2,3
renderObj = TEXT
renderObj.data = file:current:publicUrl
}

--> Multiple paths to files are outputted.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #39960: levelmedia retrieves deleted recordsClosedSteffen Ritter2012-08-19

Actions
Actions #1

Updated by Steffen Ritter about 12 years ago

  • Status changed from New to Accepted
Actions #2

Updated by Gerrit Code Review about 12 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14307

Actions #3

Updated by Steffen Ritter about 12 years ago

  • Assignee set to Steffen Ritter
Actions #4

Updated by Steffen Ritter about 12 years ago

  • Target version set to 6.0 beta 2
Actions #5

Updated by Steffen Ritter about 12 years ago

  • Project changed from 1401 to TYPO3 Core
  • Target version deleted (6.0 beta 2)
Actions #6

Updated by Steffen Ritter about 12 years ago

  • Category set to File Abstraction Layer (FAL)
Actions #7

Updated by Steffen Ritter about 12 years ago

  • Target version set to 6.0.0-beta2
Actions #8

Updated by Gerrit Code Review about 12 years ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14307

Actions #9

Updated by Steffen Ritter about 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF