Project

General

Profile

Actions

Bug #82022

closed

DataHandler doesn't store first record in foreign table as value for new record

Added by Jigal van Hemert over 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-08-01
Due date:
% Done:

0%

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

Description

TCA:

tx_myext_department
+- config
| +- foreign_table = tx_myext_departments
| +- foreign_table_where = ORDER BY tx_myext_departments.department
| +- maxitems = 1
| +- minitems = 1
| +- renderType = selectSingle
| +- size = 1
| +- type = select
+- exclude = 0
+- label = LLL:EXT:myext_metadata/locallang_db.xlf:pages.tx_myext_department

If new pages records are created from the page tree context menu or with the new record wizard the FormEngine (TM) kicks in and correctly selects the first record. If a new page is created by dragging in the page tree the field gets the value 0 which is later on displayed as [ INVALID VALUE ("0") ]

In TYPO3 6.2 the same configuration worked fine when creating new pages by dragging in the page tree. As the DataHandler is directly invoked by Ajax calls when you create a page in the pagetree the problem is most likely located in the DataHandler.

Actions

Also available in: Atom PDF