jwholdsworth
03-06-05, 12:28 AM
I've been having trouble with the user_company field in the users table, in that everbody is assigned to company 0, instead of the actual company id they work for.
This also stopped the drop down list 'Assigned To' working in the helpdesk module.
I've been through the database table and adjusted this field manually, and now the assigned to field works. The other option was to remove the line of code:
WHERE ".getCompanyPerms("user_company", NULL, PERM_READ, $HELPDESK_CONFIG['the_company'])."
from line 280 of modules/helpdesk/list.php, which also worked, however this bypasses the permissions.
Does anybody know a way to fix this problem, and ensure people are assigned to the company id when they are entered into the system, as it gets tiresome when you have a large database to adjust!
Thanks.
This also stopped the drop down list 'Assigned To' working in the helpdesk module.
I've been through the database table and adjusted this field manually, and now the assigned to field works. The other option was to remove the line of code:
WHERE ".getCompanyPerms("user_company", NULL, PERM_READ, $HELPDESK_CONFIG['the_company'])."
from line 280 of modules/helpdesk/list.php, which also worked, however this bypasses the permissions.
Does anybody know a way to fix this problem, and ensure people are assigned to the company id when they are entered into the system, as it gets tiresome when you have a large database to adjust!
Thanks.