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
multiple categories to user problem
Moderator: mkoch227
Re: multiple categories to user problem
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.
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.
-Steve
Re: multiple categories to user problem
Actually, the varchar type may be limited to max 255 chars. You will need to change MySQL database field type to "TEXT".
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: multiple categories to user problem
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.
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.
-Steve
Re: multiple categories to user problem
Correct, if you have MySQL 5.0.3 or later you can set VARCHAR to a higher value. For backwards-compatibility use TEXT instead.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools