Changing AutoComplete Customer Search

English! place to talk about development, programming and coding
Post Reply
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Changing AutoComplete Customer Search

Post by MichaelR »

Hello all,

When creating a ticket, and you have the auto complete that searches customers, where/what is the function that OTRS uses to search the customer database?

I am planning on making the customer valid type 'temporarily-invalid' to act like 'suspended' where customers cannot use any features of OTRS, but Agents etc are still able to create tickets as if they were 'valid'.

So I am planning to change the customer search function/s to include ValidID 3 as well as ValidID 1

Just I cannot find the function the AJAX code is calling, anybody know? (I am looking at System::CustomerUser::DB::CustomerSearch at the moment)

Ps. Should I get this working, I will be provide all my changes :D

Cheers,
Michael
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Changing AutoComplete Customer Search

Post by MichaelR »

Does anyone have an idea where I could be looking? Is there a few low-level functions/code that determine which ValidIDs are acceptable in searching for & manipulating Customers?
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
Daniel Obee
Moderator
Posts: 644
Joined: 19 Jun 2007, 17:11
Znuny Version: various
Real Name: Daniel Obée
Location: Berlin

Re: Changing AutoComplete Customer Search

Post by Daniel Obee »

Did you examine the Kernel/System/Valid.pm? Seems it could be the key to your problem.

Greets
Dan
alan_mn
Znuny newbie
Posts: 1
Joined: 05 Aug 2011, 06:42
Znuny Version: 3.0

Re: Changing AutoComplete Customer Search

Post by alan_mn »

hi, u guys already found the solution?
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Changing AutoComplete Customer Search

Post by MichaelR »

You just need to modify Valid.pm around to include invalid-temporary as well as valid.
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
Post Reply