
Hi list, i have a problem trying to develop a package to update the customer config, i call the function in this way # This Works Fine $ConfigToolObject->ConfigItemUpdate( Valid => 1, Key => 'AdminEmail', Value => 'administrator@servidor.com' ); # This Don't Works $ConfigToolObject->ConfigItemUpdate( Valid => 1, Key => 'CustomerUser', Value => { Name => 'Database Backend', Module => 'Kernel::System::CustomerUser::DB', Params => { Table => 'customer_user', }, CustomerKey => 'login', CustomerID => 'customer_id', CustomerValid => 'valid_id', CustomerUserListFields => ['first_name', 'last_name', 'email'], CustomerUserSearchFields => ['login', 'first_name', 'last_name', 'customer_id'], CustomerUserSearchPrefix => '', CustomerUserSearchSuffix => '*', CustomerUserSearchListLimit => 250, CustomerUserPostMasterSearchFields => ['email'], CustomerUserNameFields => ['salutation', 'first_name', 'last_name'], CustomerUserEmailUniqCheck => 1, CustomerCompanySupport => 1, Map => [ [ 'UserSalutation', 'Salutation', 'salutation', 1, 0, 'var', '', 0 ], [ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var', '', 0 ], [ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var', '', 0 ], [ 'UserLogin', 'Username', 'login', 1, 1, 'var', '', 0 ], [ 'UserPassword', 'Password', 'pw', 0, 0, 'var', '', 0 ], [ 'UserEmail', 'Email', 'email', 0, 1, 'var', '', 0 ], [ 'UserCustomerID', 'CustomerID', 'customer_id', 1, 1, 'var', '', 0 ], [ 'CustomerExt', 'Ext.', 'ext', 1, 1, 'var', '', 0 ], [ 'UserComment', 'Comment', 'comments', 1, 0, 'var', '', 0 ], [ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int', '', 0 ], ], Selections => { } } ); if i wirte just the first call to the function it works fine, but when i write the second too, i have the next error when i try to install Odd number of elements in hash assignment at /opt/otrs/Kernel/System/Config.pm line 454. Use of uninitialized value in list assignment at /opt/otrs/Kernel/System/Config.pm line 454. Odd number of elements in hash assignment at /opt/otrs/Kernel/System/Config.pm line 458. Use of uninitialized value in list assignment at /opt/otrs/Kernel/System/Config.pm line 458. I tried in many ways, and now i think that config is not possible to make through that function. Do you have an idea about the error? thank you, in advance. -- -- *Daniel Zamorano Mejia* ______________________________ *DUX DILIGENS, S.A de C.V.* Av. Arcos 267, Col. Arcos Sur 44130 Guadalajara, Jalisco, Mexico Tel: [+52] 33 3208 0551 Cel: 33 1423 7982 eMail: daniel.zamorano@duxdiligens.com www.duxdiligens.com http://www.duxdiligens.com Mexico City - Guadalajara - Buenos Aires -------------------------------------------------------------------------------- /"La información contenida en este correo es para uso exclusivo de los destinatarios del mismo. Está prohibido a las personas o entidades que no sean los destinatarios de este correo, realizar cualquier tipo de modificación, copia o distribución del mismo. Si recibe este correo por error, tenga a bien notificar al emisor y eliminarlo." "The information in this e mail is intended solely for the use of the addressee. It is prohibited to any person or entity who is not the addressee to make any modification, copy or distribution of this information. If you receive this by mistake, please notify the sender and delete it."/