Enable/Disable company ticket by customer ID

Moderator: crythias

Post Reply
hero188
Znuny newbie
Posts: 26
Joined: 29 Jul 2011, 11:02
Znuny Version: 3.0.8

Enable/Disable company ticket by customer ID

Post by hero188 »

Hi

i Insert the following code in the Kernel\System\Ticket.pm file. To find the insert location search for "if (@CustomerIDs", and replace this line with the following code.
my %CustomerData;
if ( $Param{CustomerUserID} ) {
%CustomerData = $Self->{CustomerUserObject}->CustomerUserDataGet(
User => $Param{CustomerUserID},
);
}
if (@CustomerIDs && (substr($CustomerData{CustomerID},0,5) ="c_KD ")) {

But don't work.

I using OTRS version 3.0
I use OTRS 3.08 on windowns 2008 with MySQL
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Enable/Disable company ticket by customer ID

Post by crythias »

Why are you doing it by customerID? Why not use a customer group via sysconfig?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply