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.
Category:
Categorization API
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.
- 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
- Status changed from Under Review to Rejected
Works in 6.2 and master without a patch, I'm sorry to say.
Did you test it like it is written in the bug report? Because it did not work for me with 6.2.
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?
it seems the maxitems = 1 default only fires for non mm group fields, categories are mm relations.
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.
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.
Thanks a lot for your feedback, Dmitry.
Also available in: Atom
PDF