Dynamic fields truncated

Moderator: crythias

Locked
chickenside
Znuny newbie
Posts: 3
Joined: 07 Aug 2012, 01:53
Znuny Version: 3.1.7
Real Name: Bob

Dynamic fields truncated

Post by chickenside »

Hello,
I have successfully upgraded from 3.0.12 to 3.1.17. The free text fields migrated to dynamic fields and I have successfully configured them to display in ticket views and searches.

However in the AgentTicketZoom view, the dynamic fields that are displayed in the "Ticket Information" area on the right, are truncated, showing only the first 25 characters. They have [...] mouse hover areas that display the fully populated field. Can I change this behavior to show the entire value of the dynamic field?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Dynamic fields truncated

Post by crythias »

Answered in the mailing list by Martin Gruner:
you can change this in AgentTicketZoom.pm.

Code: Select all

my $ValueStrg = $Self->{BackendObject}->DisplayValueRender(
            DynamicFieldConfig => $DynamicFieldConfig,
            Value              => $Ticket{ 'DynamicField_' . $DynamicFieldConfig->{Name} },
            ValueMaxChars      => 25,
            LayoutObject       => $Self->{LayoutObject},
        );

Change ValueMaxChars to whatever you wish.
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
chickenside
Znuny newbie
Posts: 3
Joined: 07 Aug 2012, 01:53
Znuny Version: 3.1.7
Real Name: Bob

Re: Dynamic fields truncated

Post by chickenside »

Thank you, sir. Yes, this solution did the trick. Lightning fast responses here and on the mailing list.
Locked