File tree Expand file tree Collapse file tree 5 files changed +44
-4
lines changed
Expand file tree Collapse file tree 5 files changed +44
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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,
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments