Project

General

Profile

Actions

Bug #55166

closed

label_alt does not work with itemsProcFunc

Added by Christian Weiske about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2014-01-20
Due date:
% Done:

0%

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

Description

Using label_alt + label_alt_force to show values from a column that uses an "itemsProcFunc" does not work with TYPO3 4.7, 6.1 and 6.2. It works fine in 4.6.

Scenario:
  • Table with two columns, "first" and "second".
    • ctrl array:
      • 'label' => 'first',
      • 'label_alt' => 'second',
      • 'label_alt_force' => 1,
  • second column is of type => select
    • 'items' => array(array('default' => 'default'))
    • 'itemsProcFunc' => 'somefunc.php'

The itemsProcFunc adds additional key-value pairs to the items array.

Now the backend list view only shows a label of "foo, default" (this item is in items from the beginning), but not "foo, bar" if "bar" is added via the itemsProcFunc. It only shows "foo, ".

Reasons for this seems to be typo3/sysext/backend/Classes/Utility/BackendUtility.php:getProcessedValue() which does not use itemsProcFunc for select types.

Attached is an extension "test_label", which demonstrates the problem.
Just install it and create two records, one "default / default" one, and one "foo / foo" one. The "default, default" title is shown, the "foo, foo" one only as "foo, ".


Files

test_label.tar.bz2 (1.3 KB) test_label.tar.bz2 Christian Weiske, 2014-01-20 14:25
2014-01-20_typo3_label_alt_problem.png (4.37 KB) 2014-01-20_typo3_label_alt_problem.png Christian Weiske, 2014-01-20 14:26
2014-01-20_typo3_label_alt_problem_2.png (9.68 KB) 2014-01-20_typo3_label_alt_problem_2.png Christian Weiske, 2014-01-20 14:30

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #25113: itemsProcFunc is not taken into account while generating labels for select items in the list moduleClosed2011-02-20

Actions
Actions #2

Updated by Christian Weiske about 10 years ago

It also leads to the problem that the value of selected "additional fields" are not shown correctly.

Actions #3

Updated by Ernesto Baschny about 10 years ago

  • Status changed from New to Closed

Closed as duplicate of #25113

Actions

Also available in: Atom PDF