Hi all:

 

I found the solution myself, one must use “###” without quotes to access this kind of sub keys for example:

 

If one need to generate in the zzaouto.pm an entry like this

$Self->{'Ticket::Frontend::AgentTicketPriority'}->{'RequiredLock'} =  '0';

 

This is the code to do it

 

sub UploadConfig{

    my $Self = shift;

    my %Param = @_;

    $Self->{ConfigToolObject}->ConfigItemUpdate(

        Valid => 1,

        Key => 'Ticket::Frontend::AgentTicketPriority###RequiredLock',

        Value => '0',

    );

 

Saludos / Regards,

 

Carlos Fernando Rodríguez Hdz.

 


 

 

 

DUX DILIGENS, S.A de C.V.

Av. Arcos 267, Col. Arcos Sur

44130 Guadalajara, Jalisco, Mexico

 

 

 

From: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] On Behalf Of Carlos Fernando Rodríguez Hdz
Sent: Tuesday, May 26, 2009 5:59 PM
To: 'Development community of OTRS.org'
Subject: [dev] ConfigItemUpdate (Subkey)

 

Hi all

 

I’m using the ConfigItemUpdate function, from Kernel::System::Config, it works very well with simple Key – Value configurations but now I need to use it to generate something like

 

$Self->{'Ticket::Frontend::AgentTicketPriority'}->{'RequiredLock'} =  '0';

 

I’ve try using two keys but it only put the last of them in the zzauto.pm

 

Does anyone know how to do this?

 

 

Saludos / Regards,

 

Carlos Fernando Rodríguez Hdz.