[Rt-commit] rtir branch, 4.0/update-select-status, created. 4.0.0-8-g56d248b
Jim Brandt
jbrandt at bestpractical.com
Wed Nov 2 09:56:41 EDT 2016
The branch, 4.0/update-select-status has been created
at 56d248ba4b1d599b51ecee3f299d1d4ae93e7682 (commit)
- Log -----------------------------------------------------------------
commit 56d248ba4b1d599b51ecee3f299d1d4ae93e7682
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Wed Nov 2 09:52:04 2016 -0400
Update SelectStatus to use /Ticket/Elements/SelectStatus
RT commit 57592446 refactored /Elements/SelectStatus to be more
general and added a version in /Ticket for statuses specific to
tickets. Calling /Elements/SelectStatus directly continued to work
for RTIR until fbd25c2be used Type to load the lifecycle to support
assets.
Update RTIR to call /Ticket/Elements/SelectStatus to align with
RT and to properly load ticket lifecycles.
diff --git a/html/Callbacks/RTIR/Search/Elements/PickBasics/Default b/html/Callbacks/RTIR/Search/Elements/PickBasics/Default
index d6cf222..7517f59 100644
--- a/html/Callbacks/RTIR/Search/Elements/PickBasics/Default
+++ b/html/Callbacks/RTIR/Search/Elements/PickBasics/Default
@@ -60,7 +60,7 @@ foreach( @$Conditions ) {
}
}}
elsif (($_->{'Name'}||'') eq 'Status' ) {
- $_->{'Value'}{'Path'} = '/Elements/SelectStatus';
+ $_->{'Value'}{'Path'} = '/Ticket/Elements/SelectStatus';
if (!defined $_{'Value'}{'Queues'} && defined $m->request_args->{'Lifecycle'}){
$_->{'Value'}{'Arguments'}{'Lifecycles'} =
[RT::Lifecycle->Load($m->request_args->{'Lifecycle'})]
diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index dfd4ee3..dc9cf5e 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -108,7 +108,7 @@
},
{
name => 'Status',
- comp => '/Elements/SelectStatus',
+ comp => '/Ticket/Elements/SelectStatus',
args => {
Name => "Status",
Default => $ARGS{Status} || $QueueObj->LifecycleObj->DefaultOnCreate,
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index 9347c53..843d587 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -77,7 +77,7 @@
% unless ( RT::IR->IsCountermeasureQueue($Ticket->QueueObj) ) {
<% loc($Ticket->Status) %>
% } else {
- <& /Elements/SelectStatus,
+ <& /Ticket/Elements/SelectStatus,
Name => 'Status',
Object => $Ticket->QueueObj,
DefaultValue => 0,
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 330dcbb..81545ce 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -117,7 +117,7 @@ if ( $ChildObj && $ChildObj->id && !$ChildObj->CurrentUserHasRight('ModifyTicket
<tr class="status">
<td class="label"><&|/l&>Status</&>:</td>
<td colspan="2">
- <& /Elements/SelectStatus,
+ <& /Ticket/Elements/SelectStatus,
Name => 'Status',
Object => $QueueObj,
DefaultValue => 0,
-----------------------------------------------------------------------
More information about the rt-commit
mailing list