Project

General

Profile

Actions

Bug #45833

closed

BE List Module - issues with call to itemsProcFunc and non-selected fields

Added by RVVN no-lastname-given over 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2013-02-25
Due date:
% Done:

100%

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

Description

TYPO3 4.6.16 apparently added a completely new fragment of code to "Have labels respect possible itemsProcFunc results" in BE List module, using t3lib_TCEForms->procItems.

file:
typo3_src/typo3/class.db_list_extra.inc

function:
renderListRow()

line:
634

The 'row' Array from the data object passed to itemsProcFunc only contains selected fields.
Problem is, if a itemsProcFunc needs the value of a non-selected field, an exception is raised because the 'row' Array doesn't contain this field.

In my personal case, I use an extension (Realty Manager - realty) with an itemsProcFunc for the "district" field that needs the value of the "city" field in order to retrieve districts for this city.
It's OK if I select "city" field, but crashes if not.

I'm not sure that's a core related ('row' Array may now contain all fields ?) or if that itemsProcFunc needs to be re-designed (maybe using pure TCA configuration with 'foreign_table'…).


Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF