Project

General

Profile

Actions

Bug #19397

closed

###REC_FIELD_ ### markers does not work in child IRRE record in last releases (4.1.7 and 4.2.1)

Added by Vladimir Podkovanov about 16 years ago. Updated about 11 years ago.

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

0%

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

Description

In last releases (4.1.7 and 4.2.1) is not possible to create child records (intermediate table) if the child records are using ###REC_FIELD_ ### markers (for example in select field). But it is works in 4.1.2 version. I've traced it to that - when you create new child record t3lib_BEfunc::exec_foreign_table_where_query getting only defaults and uid and pid fields of new record, but does not get fields pointing to parent record and foreign record (as it is intermidiate table) so if you use those fields in ###REC_FIELD_ ### you are running then into mysql error (but you dont see msg as it is sends via ajax channel). However in old 4.1.2 there is no such bug and t3lib_BEfunc::exec_foreign_table_where_query is getting record with proper field pointing to foreign record.
For example in 4.1.2 t3lib_BEfunc::exec_foreign_table_where_query getting row as [_THIS_ROW] => Array ([uid] => NEW48e2e5b05551c,[pid] => 70,[attr_id] => 29)
But in 4.2.1 it getting [_THIS_ROW] => Array ([uid] => NEW48e2e6b4e1d7a,[pid] => 70) only.

Also debug backtrace shows different ways of function calls, so looks like during those changes the functionality with ###REC_FIELD_ ### has been lost

in 4.1.2

#0 t3lib_BEfunc->exec_foreign_table_where_query
#1 t3lib_TCEforms->foreignTable
#2 t3lib_TCEforms->addSelectOptionsToItemArray
#3 t3lib_TCEforms->getSingleField_typeSelect
#4 t3lib_TCEforms->getSingleField_SW
...

and in 4.2.1

#0 t3lib_BEfunc::exec_foreign_table_where_query
#1 t3lib_transferData->selectAddForeign
#2 t3lib_TCEforms->addSelectOptionsToItemArray
#3 t3lib_transferData->renderRecord_SW
#4 t3lib_transferData->renderRecordRaw
...

(issue imported from #M9457)

Actions #1

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF