Есть модуль:
Код: Выделить всё
<ConfigItem Name="Company::Frontend::MyModule###PriorityMappings" Required="0" Valid="1">
<Description Translatable="1">FrontendModule for priority mapping.</Description>
<Group>Company</Group>
<SubGroup>Company::Frontend::MyModule</SubGroup>
<Setting>
<Hash>
<Item Key="1 very low">C</Item>
<Item Key="1 Консультация">C</Item>
<Item Key="2 low">B</Item>
<Item Key="2 Небольшая">B</Item>
<Item Key="3 normal">B</Item>
<Item Key="3 Крупная">B</Item>
<Item Key="4 high">A</Item>
<Item Key="4 Критическая">A</Item>
<Item Key="5 very high">A</Item>
<Item Key="5 Неотложная">A</Item>
</Hash>
</Setting>
</ConfigItem>
Знаю как прочитать значение по ключу:
Код: Выделить всё
my $config = $Kernel::OM->Get('Kernel::Config');
my $priority = $config->Get('Company::Frontend::MyModule')->{'PriorityMappings'}->{"3 normal"};
Подскажите пожалуйста как это можно сделать?