remove the attributes from the agemnt ticket search dropdown

Moderator: crythias

Locked
rohit1
Znuny newbie
Posts: 73
Joined: 19 Feb 2011, 12:05
Znuny Version: 3.0.5

remove the attributes from the agemnt ticket search dropdown

Post by rohit1 »

Hi all,

How to remove some of the attributes from the dropdown list of Agent Ticket Search, please suggest
Regards
Rohit Singh
OTRS 3.0.7
Platform: Windows XP, MAC OS X
DB: OTRS db
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: remove the attributes from the agemnt ticket search drop

Post by root »

Hi,

some settings like TicketFreeText and TicketFreeTime can be configured vi aSysconfig, section Frontend::Agent::Ticket::ViewSearch.
You'll find Ticket::Frontend::AgentTicketSearch###TicketFreeText and Ticket::Frontend::AgentTicketSearch###TicketFreeTime

Modifying other attributes need some coding:
Copy Kernel/Modules/AgentTicketSearch.pm to Custom/Kernel/Modules/AgentTicketSearch.pm and modify the copied file.
Around line 1178 (Version 3.0.6) is an array defined:

Code: Select all

         my @Attributes = (
             {
                 Key   => 'TicketNumber',
                 Value => 'Ticket Number',
             },
             {
                 Key   => 'Fulltext',
                 Value => 'Fulltext',
             },
             {
                 Key   => 'Title',
                 Value => 'Title',
             },
...
Just remove the attributes you don't need or like to offer.

hth, Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked