Project

General

Profile

Actions

Bug #47414

closed

Missing filename on TCA type="group" internal_type="file_reference"

Added by Alexander Kappler over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-04-21
Due date:
% Done:

100%

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

Description

Hi,

I tried to use a single line TCA-Element from type="group" and internal_type="file_reference" for a backend form to select/upload videos.
Everything works like expected as long as I'm using internal_type="file", but with "file_reference", after saving the dataset, the selectbox doesn't show the filename anymore. So I had a look in the DOM and there, in the <option value="<path_to_my_file>" ></option> is the value for the file_reference but the filename between the <option></option> is missing... Therefore the user can't see if file is already selected or not.

I have attached a sreenshot.

My TCA config:

_ 'mp4_file' => array(
'exclude' => 0,
'label' => 'LLL:EXT:kss_client/Resources/Private/Language/locallang_db.xlf:tx_kssclient_domain_model_video.mp4_file',
'config' => array(
'type' => 'group',
'internal_type' => 'file_reference',
'uploadfolder' => 'fileadmin/user_upload/videos',
'allowed' => 'mp4,mov',
'size' => 1,
'maxitems' => 1,
'minitems' => 0,
),
),_


Files

tca_group_file_reference.jpg (175 KB) tca_group_file_reference.jpg Alexander Kappler, 2013-04-21 21:39
2013-09-03-file_references.png (24.6 KB) 2013-09-03-file_references.png Philipp Gampe, 2013-09-03 00:32
Actions #1

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21690

Actions #2

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21690

Actions #3

Updated by Alexander Kappler over 11 years ago

I tried your patch. Looks good for me.
Thank you!

Actions #4

Updated by Gerrit Code Review over 11 years ago

Patch set 3 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21690

Actions #5

Updated by Gerrit Code Review over 11 years ago

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

Actions #6

Updated by Gerrit Code Review over 11 years ago

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

Actions #7

Updated by Kai Tallafus over 11 years ago

Patch is working fine for me.

Actions #9

Updated by Philipp Gampe about 11 years ago

Works for me... or do I need to do something special?

Actions #10

Updated by Martin Borer about 11 years ago

Hi Philipp,

That's exactly what it should look like! Hmm it's interessting, i have still no filenames in selector (tested with 6.1).

What's your Testing Environment? I've tested it under Windows and Mac.

Actions #11

Updated by Gerrit Code Review about 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23058

Actions #12

Updated by Gerrit Code Review about 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23058

Actions #13

Updated by Martin Borer about 11 years ago

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

Updated by Gerrit Code Review about 11 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23681

Actions #15

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23682

Actions #16

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23681

Actions #17

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23682

Actions #18

Updated by Ernesto Baschny about 11 years ago

  • Category set to File Abstraction Layer (FAL)
  • Is Regression set to No
Actions #19

Updated by Martin Borer about 11 years ago

  • Status changed from Under Review to Resolved
Actions #20

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF