Actions
Bug #31757
closedForeign field as label for relation
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.
Actions