Hi everybody,
I'm using free text fields. In the agent view I can see only the *keys*
instead of the *text*.
Is there a reason behind this behaviour?
To be more specific: I defined a free text field:
$Self->{'TicketFreeKey1'} = {
'cnt' => 'Country'
};
$Self->{'TicketFreeText1'} = {
'MT' => 'Malta',
'PT' => 'Portugal',
'TV' => 'Tuvalu',
}
If a customer creates a ticket, she gets a select box with Malta,
Portugal and Tuvula
(e.g. <option value="TV">Tuvalu</option>).
But if I take a look at the new ticket, I only get the keys:
cnt: TV
This happens in agent view (AgentTicketZoom, AgentTicketQueue) as well
as in customer view (CustomerTicketZoom).
For TicketFreeKey1 I could use the same string for key and text:
$Self->{'TicketFreeKey1'} = {
'Country' => 'Country'
};
But I'd like to keep the keys ('MT', 'PT', 'TV') and see the text.
That's what I thought keys are good for ;)
Is there any config option or somethin' else?
If not, I'd have to change it in the source code.
I'd like to do this at "bottom"-level - while loading the tickets.
IMHO in Ticket::TicketGet() for zoom view and in Article::ArticleGet()
for non zoom view.
Somethin' like
$Ticket{TicketFreeText2} = defined($Row[19]) ? $Row[19] : '';
$Ticket{TicketFreeText2} = defined($Row[19]) ?
$Self->{ConfigObject}->Get('TicketFreeText2')->{$Row[19]} : '';
Anybody knows if there would be any problems or side effects with this
approach?
Greetings and thanks in advance,
Gerhard
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev