Skip to content

Commit 8485c55

Browse files
committed
Merge branch '4.0/show-sla' into 4.0.0-releng
2 parents 0b6e6c2 + 4269509 commit 8485c55

File tree

5 files changed

+44
-4
lines changed

5 files changed

+44
-4
lines changed

html/RTIR/Create.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@
128128
},
129129
},
130130
{ special => 'roles' },
131+
132+
$QueueObj->SLADisabled ? () : (
133+
{ name => 'SLA',
134+
comp => '/Elements/SelectSLA',
135+
args => {
136+
Name => 'SLA',
137+
Default => $ARGS{SLA} || RT::SLA->GetDefaultServiceLevel(Queue => $QueueObj),
138+
DefaultValue => RT::SLA->GetDefaultServiceLevel(Queue => $QueueObj) ? 0 : 1,
139+
QueueObj => $QueueObj,
140+
},
141+
}),
142+
131143
],
132144
&>
133145

html/RTIR/Display.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
<% $Ticket->Status %>
8383
</td>
8484
</tr>
85+
% if ( !$Ticket->QueueObj->SLADisabled ) {
86+
<tr class="sla">
87+
<td class="label"><&|/l&>SLA</&>:</td>
88+
<td class="value"><% loc($Ticket->SLA) %></td>
89+
</tr>
90+
% }
8591
<tr>
8692
<td class="label"><% loc("Incident") %>:</td>
8793
<td class="value">

html/RTIR/Edit.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,15 @@
102102
Constituency => RT::IR->ConstituencyFor($Ticket)
103103
&></td>
104104
</tr>
105-
106-
107-
108-
105+
% if ( !$Ticket->QueueObj->SLADisabled ) {
106+
<tr class="sla">
107+
<td class="label"><&|/l&>SLA</&>:</td>
108+
<td class="value"><& /Elements/SelectSLA,
109+
Name => 'SLA',
110+
Default => loc($Ticket->SLA)
111+
&></td>
112+
</tr>
113+
% }
109114
% if (!RT::IR->IsIncidentQueue($Ticket->QueueObj) ) {
110115
<tr class="incidents">
111116
<td class="label"><%loc("Incident")%>:</td>

html/RTIR/Incident/Create.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@
139139
Default => $ARGS{'Owner'} || $session{'CurrentUser'}->Id
140140
&></td>
141141
% }
142+
% if ( !$QueueObj->SLADisabled ) {
143+
<tr class="sla">
144+
<td class="label"><&|/l&>SLA</&>:</td>
145+
<td class="value"><& /Elements/SelectSLA,
146+
Name => 'SLA',
147+
Default => $ARGS{SLA} || RT::SLA->GetDefaultServiceLevel(Queue => $QueueObj),
148+
DefaultValue => RT::SLA->GetDefaultServiceLevel(Queue => $QueueObj) ? 0 : 1,
149+
QueueObj => $QueueObj,
150+
&></td>
151+
</tr>
152+
% }
142153
</tr>
143154

144155
<& /RTIR/Elements/EditCustomFields,

html/RTIR/Incident/Display.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@
8787
<% $TicketObj->Status %>
8888
</td>
8989
</tr>
90+
% if ( !$TicketObj->QueueObj->SLADisabled ) {
91+
<tr class="sla">
92+
<td class="label"><&|/l&>SLA</&>:</td>
93+
<td class="value"><% loc($TicketObj->SLA) %></td>
94+
</tr>
95+
% }
9096
<tr>
9197
<td class="label"><&|/l&>Owner</&>:</td>
9298
<td class="value"><& /Elements/ShowUser, User => $TicketObj->OwnerObj &></td>

0 commit comments

Comments
 (0)