Hi,
I'm trying to add new pair (key, value) to SysConfig via code in pl file. Now, I created SysConfig object, and when I do something like:
$Self->{SysConfigObject}->ConfigItemUpdate(
Valid => 1,
Key => 'DashboardBackend###0110-TicketEscalation',
Value => {
DefaultColumns => {
Stop => "1"
}
}
);
it will delete all existing key/value pairs for DashboardBackend###0110-TicketEscalation, and add only this one that I created.
I just want to add new item, not to delete them all. Is this possible?
If You are asking why I do this, answer is I'm trying to make new .opm package, and this script will write necessary changes in SysConfig.
Regards
Kernel::System::SysConfig
Moderator: crythias
Re: Kernel::System::SysConfig
just add an xml file with the necessary code. Have for example a look at the SystemMonitoring Package to see how it it solved. Please also have a look on the developer docs (http://doc.otrs.org)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com