Page 1 of 1

multiple categories to user problem

Posted: Wed Jun 06, 2012 9:18 pm
by burtav
Hello

my Hesk2.3 is working fine but a problem apears when I try to add a new user (no admin) since we have 200 categories into HESK I tried to add each of the 200 categories to the non admin user , and seems to be added

but if you see again the user profile , it seems only to recognize 88 of the categories only and the other are disabled.


I cant place that user as admin since he can erase tickets or rename I need to torce the properties of that user.


appreciate your help in advance.


regards


Humberto

Re: multiple categories to user problem

Posted: Wed Jun 06, 2012 10:41 pm
by steve
The Categories field in the Users table is set to varchar(255). Meaning this field can contain no more than 255 characters.

You will need to change the varchar length to 1500 for this field in your database, that should be enough characters to cover your 200 categories and leave you room for a few more categories in the future.

Re: multiple categories to user problem

Posted: Thu Jun 07, 2012 9:58 am
by Klemen
Actually, the varchar type may be limited to max 255 chars. You will need to change MySQL database field type to "TEXT".

Re: multiple categories to user problem

Posted: Thu Jun 07, 2012 3:46 pm
by steve
I agree that changing the field type to "TEXT" makes more sense.

However, the effective maximum length of a VARCHAR in MySQL 5.0.3 and later is subject to the maximum row size 65,535 bytes, (which is shared among all columns)

If you use utf8 you could have up to 21,844 in that row.

Re: multiple categories to user problem

Posted: Fri Jun 08, 2012 8:56 am
by Klemen
Correct, if you have MySQL 5.0.3 or later you can set VARCHAR to a higher value. For backwards-compatibility use TEXT instead.