Bug #82980

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

Added by Helmut Hummel over 3 years ago. Updated over 2 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

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
#1

Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54623

#2

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54626

#3

Updated by Helmut Hummel over 3 years ago

  • Related to Bug #70956: Behavior of keepItems changed added
#4

Updated by Helmut Hummel over 3 years ago

  • Related to Bug #76242: Special Menus removed from new content element wizard if TSconfig menu_type.keepItems = 1,2 added
#5

Updated by Helmut Hummel over 3 years ago

  • Related to Bug #75834: removeItems, backendLayouts, pageTSconfig added
#6

Updated by Helmut Hummel over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#7

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF