[Rt-commit] [rtir] 16/24: Switch Create Links from Queue to Lifecycle
Jesse Vincent
jesse at bestpractical.com
Mon Feb 9 00:25:23 EST 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 08ef70090604b139fecb905c8c7e4dba37241c29
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sun Feb 8 19:36:45 2015 -0800
Switch Create Links from Queue to Lifecycle
---
html/Callbacks/RTIR/Elements/MakeClicky/Default | 4 ++--
html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once | 2 +-
html/Callbacks/RTIR/Elements/Tabs/Privileged | 14 +++++++-------
html/RTIR/Elements/ShowIncidents | 2 +-
html/RTIR/Incident/Elements/ShowChildren | 4 ++--
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/html/Callbacks/RTIR/Elements/MakeClicky/Default b/html/Callbacks/RTIR/Elements/MakeClicky/Default
index c97fc05..53589a5 100644
--- a/html/Callbacks/RTIR/Elements/MakeClicky/Default
+++ b/html/Callbacks/RTIR/Elements/MakeClicky/Default
@@ -107,7 +107,7 @@ my %actions;
my $result .= qq{[<a href="$web_path/RTIR/Tools/Lookup.html?$args{lookup_params}type=ip&q=$escaped_host">}
.loc('lookup IP') .q{</a>]};
if ( $args{incident} && !RT->Config->Get('RTIR_DisableBlocksQueue') ) {
- $result .= qq{[<a href="$web_path/RTIR/Create.html?Incident=$args{incident}&Queue=Blocks&IP-Value=$escaped_host">block</a>]};
+ $result .= qq{[<a href="$web_path/RTIR/Create.html?Incident=$args{incident}&Lifecycle=blocks&IP-Value=$escaped_host">block</a>]};
}
if ( $args{'object'} && $args{'object'}->id ) {
my $cf = RT::IR::GetCustomField('IP');
@@ -153,7 +153,7 @@ my %actions;
$result .= qq{<input type="checkbox" name="Requestorbox-$escaped_email" unchecked />};
}
$result .= qq{[<a href="$web_path/RTIR/Create.html}
- . qq{?Incident=$args{'incident'}&Queue=Investigations&Requestors=$escaped_email">}
+ . qq{?Incident=$args{'incident'}&Lifecycle=investigations&Requestors=$escaped_email">}
. loc('Investigate to') .qq{</a>]};
}
my $domain = (split /@/, $email, 2)[1];
diff --git a/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once b/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once
index c7868fa..4395390 100644
--- a/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once
+++ b/html/Callbacks/RTIR/Elements/RT__Ticket/ColumnMap/Once
@@ -138,7 +138,7 @@ $COLUMN_MAP->{'LookupToolIncidentActions'} = {
;
}
push @res, \'<a href="',
- RT->Config->Get('WebPath') .'/RTIR/Create.html?Queue=Investigations&Incident='. $t->id,
+ RT->Config->Get('WebPath') .'/RTIR/Create.html?Lifecycle=investigations&Incident='. $t->id,
\'">',
'[' . $t->loc("Investigate") .']',
\'</a>'
diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index 6cdd458..6d1a43f 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -92,21 +92,21 @@ $root->child(
path => '/RTIR/Search/Results.html?Lifecycle=incidents'
)->child(
create => title => loc('Create'),
- path => '/RTIR/Create.html?Queue=Incidents',
+ path => '/RTIR/Create.html?Lifecycle=incidents',
);
$root->child(
reports => title => loc('Incident Reports'),
path => '/RTIR/Search/Results.html?Lifecycle=incident_reports'
)->child(
create => title => loc('Create'),
- path => '/RTIR/Create.html?Queue=Incident%20Reports',
+ path => '/RTIR/Create.html?Lifecycle=incident_reports',
);
$root->child(
investigations => title => loc('Investigations'),
path => '/RTIR/Search/Results.html?Lifecycle=investigations'
)->child(
launch => title => loc('Launch'),
- path => '/RTIR/Create.html?Queue=Investigations',
+ path => '/RTIR/Create.html?Lifecycle=investigations',
);
unless ( RT->Config->Get('RTIR_DisableBlocksQueue') ) {
$root->child(
@@ -114,7 +114,7 @@ unless ( RT->Config->Get('RTIR_DisableBlocksQueue') ) {
path => '/RTIR/Search/Results.html?Lifecycle=blocks'
)->child(
create => title => loc('Create'),
- path => '/RTIR/Create.html?Queue=Blocks',
+ path => '/RTIR/Create.html?Lifecycle=blocks',
);
}
@@ -318,9 +318,9 @@ if ( $request_path =~ m{^/RTIR/(?:$re_rtir_types/)?(Display|Edit|Update|Forward|
);
PageMenu()->child(
new => title => loc("New $type"),
- path => !$queue
- ? "/RTIR/Create.html?Child=$id&Queue=Incidents"
- : "/RTIR/Create.html?". $query_string->( Incident => $id, Queue => $queue )
+ path => !$lifecycle
+ ? "/RTIR/Create.html?Child=$id&Lifecycle=incidents"
+ : "/RTIR/Create.html?". $query_string->( Incident => $id, Lifecycle => $lifecycle )
,
);
PageMenu()->child(
diff --git a/html/RTIR/Elements/ShowIncidents b/html/RTIR/Elements/ShowIncidents
index cb7426b..a78127d 100644
--- a/html/RTIR/Elements/ShowIncidents
+++ b/html/RTIR/Elements/ShowIncidents
@@ -58,7 +58,7 @@
% my $wp = RT->Config->Get('WebPath');
% unless ( $action ) {
<b><a href="<% $wp %>/RTIR/Link/ToIncident/?id=<% $id %>">[Link]</a></b>
-<b><a href="<% $wp %>/RTIR/Create.html?Child=<% $id %>&Queue=Incidents">[New]</a></b>
+<b><a href="<% $wp %>/RTIR/Create.html?Child=<% $id %>&Lifecycle=incidents">[New]</a></b>
% } elsif ( $action ne 'No' ) {
<a href="<% $wp %>/RTIR/Display.html?Action=<% $action %>&id=<% $id %>">[<% loc( $action ) %>]</a>
% }
diff --git a/html/RTIR/Incident/Elements/ShowChildren b/html/RTIR/Incident/Elements/ShowChildren
index bfa9bdc..014834d 100644
--- a/html/RTIR/Incident/Elements/ShowChildren
+++ b/html/RTIR/Incident/Elements/ShowChildren
@@ -111,8 +111,8 @@ my @box_actions;
if ( $IncidentObj->CurrentUserHasRight('ModifyTicket') ) {
if ( $QueueObj->Id and $QueueObj->CurrentUserHasRight('CreateTicket') ) {
push @box_actions, {
- title => $QueueObj->Name ne 'Investigations'? loc('Create') : loc('Launch'),
- path => "/RTIR/Create.html?Incident=$id&Queue=$EscapedQueue",
+ title => $Lifecycle ne 'investigations'? loc('Create') : loc('Launch'),
+ path => "/RTIR/Create.html?Incident=$id&Lifecycle=".$Lifecycle,
};
}
push @box_actions, {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list