Project

General

Profile

Actions

Bug #52285

closed

CategoryCollection must handle multiple category fields per table

Added by Francois Suter about 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Category:
Miscellaneous
Target version:
Start date:
2013-09-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Feature #51921 introduced the possibility to have multiple category selectors per table. The CategoryCollection class was not updated accordingly and - in the current state - will retrieve relations for all fields. The CategoryCollection must be modified to take the field name into account.

This also has an impact on the recently introduced category-based page menu, which needs to show a field selector on top of the category selector.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #51921: Only 1 category field per table possibleClosed2013-09-11

Actions
Related to TYPO3 Core - Task #52836: Let itemsProcFunc throw ExceptionsClosedFrancois Suter2013-10-15

Actions
Related to TYPO3 Core - Bug #52910: CategoryRegistryTest is brokenClosed2013-10-17

Actions
Actions #1

Updated by Gerrit Code Review about 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24066

Actions #2

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24066

Actions #3

Updated by Gerrit Code Review about 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24066

Actions #4

Updated by Francois Suter about 11 years ago

To simplify testing, you can install extension "examples" (https://git.typo3.org/TYPO3CMS/Extensions/examples.git), which adds a second category selector to the "pages" table.

Actions #5

Updated by Francois Suter about 11 years ago

More detailed testing instructions:

  • install extension "examples" (from https://git.typo3.org/TYPO3CMS/Extensions/examples.git)
  • edit a few pages and assign them to different categories using both selectors
  • create a category-based page menu, and choose any of the two selectors as reference field
  • view it and observe that pages selection was based on relations created in both selectors
  • apply the patch
  • view the page menu again: it should contain only pages related to categories from the correct reference field
Actions #6

Updated by Gerrit Code Review about 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24066

Actions #7

Updated by Fabien Udriot about 11 years ago

  • create a category-based page menu, and choose any of the two selectors as reference field

Just for making it more straightforward, patch https://review.typo3.org/#/c/23905/ must be applied beforehand.

Actions #8

Updated by Francois Suter about 11 years ago

Fabien Udriot wrote:

  • create a category-based page menu, and choose any of the two selectors as reference field

Just for making it more straightforward, patch https://review.typo3.org/#/c/23905/ must be applied beforehand.

No, that's wrong! The category-based page menu already exists in the Core. The patch you point to introduces a tt_content menu. So no need to apply another patch to test this one.

Actions #9

Updated by Gerrit Code Review about 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24066

Actions #10

Updated by Francois Suter about 11 years ago

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

Updated by Gerrit Code Review about 11 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24860

Actions #12

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24860

Actions #13

Updated by Marc Bastian Heinrichs about 11 years ago

  • Status changed from Under Review to Resolved
Actions #14

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF