Project

General

Profile

Actions

Bug #82980

closed

Handling of mixed string and 0 broken for keepItems and removeItems page ts

Added by Helmut Hummel over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2017-11-12
Due date:
% Done:

100%

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

Description

When having a field in TCA which has items with integer values and string values, then it is not possible
to reliably remove the item with "0" value.

When using keepItems=foo, the item with value "0" will stay.

When using removeItems=foo, the item with value "0" will also be removed

This can be tested with news extension and the type field, which holds integer values (including 0) for default news
and string values, when news is extended.

TCEFORM.tx_news_domain_model_news.type.removeItems = CustomNewsType

will also remove default news type (which is 0)

TCEFORM.tx_news_domain_model_news.type.keepItems = CustomNewsType

will NOT remove default news type


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #70956: Behavior of keepItems changedClosedMorton Jonuschat2015-10-22

Actions
Related to TYPO3 Core - Bug #76242: Special Menus removed from new content element wizard if TSconfig menu_type.keepItems = 1,2Closed2016-05-20

Actions
Related to TYPO3 Core - Bug #75834: removeItems, backendLayouts, pageTSconfigClosed2016-04-21

Actions
Actions

Also available in: Atom PDF