How to add field to customer company [SOLVED]

Moderator: crythias

Locked
mikester
Znuny newbie
Posts: 13
Joined: 20 Apr 2011, 15:46
Znuny Version: 3.1.3
Real Name: Michael
Company: SyTech Corp

How to add field to customer company [SOLVED]

Post by mikester »

I would like to add a field or two to the customer company to show the version of the software the customer is currently running and would like the agents to see this info when looking at the customer company. I've searched the forum but can't find instructions for this. Any help would be greatly appreciated!

I figured out how to add the fields I need in the database (I'm using MYSQL) and I believe I need to edit Kernel/Config.pm with the new information but I'm not exactly sure what to put in there. Anyone know of an example of something similar I can try to copy??? I'm thinking I copy some lines from Kernel/Config/Defaults.pm and paste them with the new info in Kernel/Config.pm but not certain.
Last edited by mikester on 29 Apr 2011, 17:02, edited 1 time in total.
thomkortekaas
Znuny newbie
Posts: 61
Joined: 17 Dec 2010, 13:22
Znuny Version: 3.0

Re: How to add field to customer company

Post by thomkortekaas »

Try adjusting this file (create back-up before ofcourse).

As the looks of it, this defines what is written to the DB.

OTRS\OTRS\Kernel\System\CustomerCompany.pm
OTRS 3.0.7 with MySQL on Windows server 2003 r2 server with AD integration for customers.
mikester
Znuny newbie
Posts: 13
Joined: 20 Apr 2011, 15:46
Znuny Version: 3.1.3
Real Name: Michael
Company: SyTech Corp

Re: How to add field to customer company

Post by mikester »

Thanks thomkortekaas! That did it. I created the fields in MYSQL and updated:
Kernel\Config.pm
and
Kernel\System\CustomerCompany.pm (added to three sections in there)

and now I have three new fields in my customer company forms. :)
Locked