Project

General

Profile

Actions

Bug #62007

closed

Impossible to save a category with many opposite relations

Added by Dmitry Dulepov about 10 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Categorization API
Target version:
-
Start date:
2014-10-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

TCA definition for sys_category misses 'maxitems' => 9999 on the 'items' field. As a result, maximum allowed number of elements in this field is one (see http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Group/Index.html#maxitems). If you assign to content elements (or news, or whatever else) to a single category and go to that category, you will not be able to do anything with it because there will be an error mark in the "Items" field.

Solution: add 'maxitems' => 9999 in ./typo3/sysext/core/Configuration/TCA/sys_category.php near line 160.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #68247: group maxitems woesClosed2015-07-16

Actions
Actions #1

Updated by Gerrit Code Review over 9 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 http://review.typo3.org/38428

Actions #2

Updated by Stefan Neufeind over 9 years ago

  • Status changed from Under Review to Rejected

Works in 6.2 and master without a patch, I'm sorry to say.

Actions #3

Updated by Dmitry Dulepov over 9 years ago

Did you test it like it is written in the bug report? Because it did not work for me with 6.2.

Actions #4

Updated by Stefan Neufeind over 9 years ago

I think I tested it, like you described. I've added the same category in multiple records, then went to the category and looked at the items-tab. I was able to edit and save the category just fine, without a maxitems-setting like you proposed to add. In the review Lolli also mentioned it worked for him without the patch.

Could you please test again on a current 6.2.x and maybe even on current master, please?

Actions #5

Updated by Dmitry Dulepov over 9 years ago

You have to edit relations from the category side to reproduce this. According to TCA reference (http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Group/Index.html#maxitems) the default value of maxitems is 1. So if it is not set for the field in sys_categories, than it is not possible to save more than one relation.

Actions #6

Updated by Christian Kuhn over 9 years ago

it seems the maxitems = 1 default only fires for non mm group fields, categories are mm relations.

Actions #7

Updated by Dmitry Dulepov over 9 years ago

FormEngine does not care whether it is multiple or not :) Relations are read by the RelationHandler, which is a separate class. These two things are isolate. The problem with this bug was only in the browser. The record could not be saved.

I hope I will find time to retest it.

Actions #8

Updated by Dmitry Dulepov over 9 years ago

Not reproducible in 7.3. I will re-test in 6.2 a little later. May be, it was fixed earlier? We had this problem with a client's site and had to make a configuration change to patch it.

Actions #9

Updated by Stefan Neufeind over 9 years ago

Thanks a lot for your feedback, Dmitry.

Actions

Also available in: Atom PDF