Project

General

Profile

Actions

Bug #19428

closed

label uid shows not working

Added by Carsten no-lastname-given about 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-10-07
Due date:
% Done:

0%

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

Description

$TCA['xxx'] = array (
'ctrl' => array (
'label' => 'uid',
....

in web->listview the labes shows 'no title' ('Kein Titel').

(issue imported from #M9506)


Files

class.t3lib_befunc.php.diff (339 KB) class.t3lib_befunc.php.diff Administrator Admin, 2009-01-04 16:46
v2-class.t3lib_befunc.php.diff (233 Bytes) v2-class.t3lib_befunc.php.diff Administrator Admin, 2009-01-04 17:04
9506.diff (660 Bytes) 9506.diff Administrator Admin, 2009-01-04 18:30
Actions #1

Updated by Markijan no-lastname-given about 16 years ago

Can confirm this (typo3 ver. 4.2.1, php ver. 5.2.0)
web->listview the labels shows [No title] instead record uid - is not big problem.

Much bigger problem is impossibility to work in with TCA foreign_table relations build by uid (in BE form dropdowns all foreign table records labeled with [No title]).

And also editing records with previously created relations cause warning:
[ INVALID VALUE ("old stored uid")]

Actions #2

Updated by Oliver Hader about 16 years ago

Markijan, your problem seems to be different - could you please open a new bug report on it and give some detailed information where this occurs and how to reproduce it... Thanks!

Actions #3

Updated by Markijan no-lastname-given about 16 years ago

No Oliver, this is exactly the same issue:

In List view records with label 'label' => 'uid' shown with [No title] instead uid.
Also the same title is not shown in foreign table relation fields in be forms.

How to reproduce: create any custom table or change for any table in file ext_tables.php in $TCA to 'label' => 'uid'.

I think this is related with t3lib_BEfunc::getProcessedValue which process value only when table and field is configured $TCA[$table]['columns'][$col]

Line 2067:
// Check if table and field is configured:
if (is_array($TCA[$table]) && is_array($TCA[$table]['columns'][$col])) {

And because there is no configuration for 'uid' in TCA - this function return nothing... <- this is bug

I think on line 2215 of class.t3lib_befunc.php ned to be added else {} condition for labels/fields not configured in TCA.

Actions #4

Updated by Jan Perdoch almost 16 years ago

I uploaded diff file with my solution for uid label and I hope it help.

Actions #5

Updated by Jan Perdoch almost 16 years ago

Uploaded new and correct diff.

Actions #6

Updated by Steffen Kamper almost 16 years ago

i uploaded new patch. For uid there is no need to load TCA, so save performance and return the value.

Actions #7

Updated by Steffen Kamper almost 16 years ago

committed to 4_1 and trunk, rev 4650/4651

Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF