Bug #15831
closedTCA usergroup limit too smal
0%
Description
Here's the usecase: we had to create usergroups and assign permission to those. The problem was, we could not select more than 20 items for a list which holds many more. We created a small extension to update the TCA but since we might not be the only one to face this issue, here are the line. Please feel free to replace the value with the integer of your choice, being a bit larger than the one we have today:
from an_extension/ext_tables.php:
t3lib_div::loadTCA('be_groups');
$TCA["be_groups"]["columns"]["tables_modify"]["config"]["maxitems"] = 999;
$TCA["be_groups"]["columns"]["tables_select"]["config"]["maxitems"] = 999;
$TCA["be_groups"]["columns"]["non_exclude_fields"]["config"]["maxitems"] = 9999;
(issue imported from #M2879)
Updated by Franz Holzinger over 18 years ago
How should such an extension to update the TCA look like?
Wouldn't it be better to find implement this using a TypoScript Configuration? This would e.g. make it possible to have different TCA settings on different pages.
Updated by David Worms over 18 years ago
The TCA configuration we are overwriting is found in t3lib/stddb/tbl_be.php.
The only purpose is to allow the administrator of the site to select more items when he configure backend usergroup's permissions. Since backend usergroup can only be maintained from the root page of Typo3, I don't really see a reason why we should make this configurable through an extension. Our own extension was just here to fix this behavior without having to hack the original source code. While we were configuring our backend usergroups, we just could not find a reason why those values where so low, this is why I would suggest to update the file mentioned above.
Updated by Sacha Vorbeck over 18 years ago
I had a similar problem today. I tried to select some additional allowed excludefields in the page-content section for a usergroup and suddenly my admin-BE-user session was terminated after saving the group. This didn`t happen when I de-selected some fields from other sections before so the total amount of the fields seems to be the problem. I yet have to try if setting "$TCA["be_groups"]["columns"]["non_exclude_fields"]["config"]["maxitems"] = 9999;" will solve the problem.
@David Worms: did you get some kind of error message or was your session also terminated?
Updated by David Worms over 18 years ago
No, we didn't encounter any kind of error, we were just limitited by the limited amount of selections allowed.
Updated by Lars Houmark over 16 years ago
The bug related with this one is fixed (4202), so I am setting this one to fixed as well.