Project

General

Profile

Actions

Bug #31757

closed

Foreign field as label for relation

Added by Michel Georgy about 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2011-11-11
Due date:
% Done:

100%

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

Description

There seems to be a little Problem if you work with versioning/workspaces and have a intermediate table where
the label of this table is a foreign field.

If you create a new version in DRAFT Workspace there will be generated 2 records in database, an actual draft version and
a placeholder. And here's the problem in "class.t3lib_tcemain.php:883":

$newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['label']] = '[PLACEHOLDER, WS#' . $this->BE_USER->workspace . ']';

As the label is a foreign field and therefore just a integer in our case, a flashmessage error is shown because insertDB now tries to
save a string value ("PLACEHOLDER, WS#1") to the Integer field and the checkStoredRecord method fails.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #17551: Error message when creating a record in draft WS with a "double" fieldClosed2007-08-22

Actions
Actions

Also available in: Atom PDF