Increase field length in search results

Moderator: crythias

Locked
retro2707
Znuny advanced
Posts: 131
Joined: 16 Apr 2014, 17:06
Znuny Version: 6.0.12

Increase field length in search results

Post by retro2707 »

Hi, As the screenshot below shows really. Can we increase the size of the fields so we don't have the "......" afterwards please?

I had a look through some searches but couldn't find anything to do with the search results/ queue screens.
ul.png
You do not have the required permissions to view the files attached to this post.
Setup:
OTRS 6.0.12
Hosted on CentOS 7.4/ MySQL - MariaDB (5.5.60)
retro2707
Znuny advanced
Posts: 131
Joined: 16 Apr 2014, 17:06
Znuny Version: 6.0.12

Re: Increase field length in search results

Post by retro2707 »

Any ideas on this one? I thought it would be a fairly standard request. A lot of our tickets have long names and to be able to see it without mousing over the title all the time would be a big help.
Setup:
OTRS 6.0.12
Hosted on CentOS 7.4/ MySQL - MariaDB (5.5.60)
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Increase field length in search results

Post by reneeb »

To achieve that, you have to edit the file Kernel/Output/HTML/Standard/AgentTicketOverviewSmall.tt (in OTRS5 it's Kernel/Output/HTML/Templates/Standard/AgentTicketOverviewSmall.tt):

remove the "| truncate(15)" in https://github.com/OTRS/otrs/blob/rel-4 ... ll.tt#L432 and replace "Data.Subject | html" with "Data.SubjectLong | html" in https://github.com/OTRS/otrs/blob/rel-4 ... ll.tt#L439
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
retro2707
Znuny advanced
Posts: 131
Joined: 16 Apr 2014, 17:06
Znuny Version: 6.0.12

Re: Increase field length in search results

Post by retro2707 »

Perfect reneeb. Thank you so much! Excellent stuff.
Setup:
OTRS 6.0.12
Hosted on CentOS 7.4/ MySQL - MariaDB (5.5.60)
Locked