[SOLVED] Fields size in ticketinfo panel on zoom screen

Moderator: crythias

Post Reply
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

[SOLVED] Fields size in ticketinfo panel on zoom screen

Post by leo5nidas »

Hello

In ticket zoom screen, OTRS cuts the values of the fields in the ticket info panel, such as "Queue". Instead of showing the whole string like "Reclamation-Queue-Level3", it only shows something like "Reclamation-Queue-Lev[...]".

Is there any way of increasing the default size of the values showed?

Thank you in advance.

Regards
Last edited by leo5nidas on 02 Jul 2013, 12:24, edited 5 times in total.
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
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: Fields size in ticketinfo panel on zoom screen

Post by reneeb »

You can change the template...
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
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen

Post by leo5nidas »

reneeb wrote:You can change the template...
Ok, thank you. So I suppose the size of the field could be set up in the AgentTicketZoom.dtl file. Right?
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
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: Fields size in ticketinfo panel on zoom screen

Post by reneeb »

Right. You'll find something like "$QData{"Queue","30"}". The "30" means "show 30 chars and when it's longer, skip the rest and show '[...]'". You have to increase this value or remove it (then you should have $QData{"Queue"})
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
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen

Post by leo5nidas »

Ok, understood. Thank you very much for your great explanation. That was very useful.

Regards
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen

Post by leo5nidas »

reneeb wrote:Right. You'll find something like "$QData{"Queue","30"}". The "30" means "show 30 chars and when it's longer, skip the rest and show '[...]'". You have to increase this value or remove it (then you should have $QData{"Queue"})
Reneeb, I have a last question for you: The solution you have tell me works with the default fields. However, when I try to do the same with the dynamic fields I replace $Data{"Value"} with $QData{"Value","45"} in the code, but the system ignores the size 45 and keeps limiting the size to the 18 characters by default.

Is there any way of increase the size of the dynamic field values in the AgentTicketZoom.dtl?

Thank you in advance again.

Best regards
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
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: Fields size in ticketinfo panel on zoom screen II

Post by reneeb »

No, you have to change Kernel/Modules/AgentTicketZoom.pm . Search for "ValueMaxChars"....
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
leo5nidas
Znuny newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
Znuny Version: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen II

Post by leo5nidas »

Thank you very much, reneeb. That was very helpful!
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database
Post Reply