Skip to content

Commit

Permalink
Merge pull request #370 from RotherOSS/issue-272-EscalationSuspendStates
Browse files Browse the repository at this point in the history
Issue 272 escalation suspend states
  • Loading branch information
bschmalhofer authored Aug 18, 2020
2 parents 4ae9586 + 96522ff commit e1f5e88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/test/SysConfig/SettingUpdate.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ConfigObject->Set(
Value => 0,
);

my $SetingsXML = << 'EOF',
my $SettingsXML = <<'EOF';
<?xml version="1.0" encoding="utf-8" ?>
<otobo_config version="2.0" init="Framework">
<Setting Name="Test0" Required="1" Valid="1">
Expand All @@ -59,11 +59,11 @@ my $SetingsXML = << 'EOF',
</otobo_config>
EOF

my $SysConfigObject = $Kernel::OM->Get('Kernel::System::SysConfig');
my $SysConfigObject = $Kernel::OM->Get('Kernel::System::SysConfig');
my $SysConfigXMLObject = $Kernel::OM->Get('Kernel::System::SysConfig::XML');

my @DefaultSettingAddParams = $SysConfigXMLObject->SettingListParse(
XMLInput => $SetingsXML,
XMLInput => $SettingsXML,
XMLFilename => 'UnitTest.xml',
);

Expand Down
10 changes: 10 additions & 0 deletions scripts/test/Znuny4OTOBOEscalationSuspend/EscalationSuspendLoop.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ my $TicketObject = $Kernel::OM->Get('Kernel::System::Ticket');
my $QueueObject = $Kernel::OM->Get('Kernel::System::Queue');
my $TimeObject = $Kernel::OM->Get('Kernel::System::Time');

# for this script activate the default EscalationSuspendStates
$ConfigObject->Set(
Key => 'EscalationSuspendStates',
Value => [
'pending auto close+',
'pending auto close-',
'pending reminder',
],
);

# Disable transaction mode for escalation index ticket event module
my $TicketEventModulePostConfig = $ConfigObject->Get('Ticket::EventModulePost');
my $EscalationIndexName = '9990-EscalationIndex';
Expand Down

0 comments on commit e1f5e88

Please sign in to comment.