Bug #62007
closedImpossible to save a category with many opposite relations
0%
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.
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
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.
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.
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?
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.
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.
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.
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.
Updated by Stefan Neufeind over 9 years ago
Thanks a lot for your feedback, Dmitry.