[Rt-commit] rtir branch, 4.0/correspondents-from-makeclicky, repushed
Brian Duggan
brian at bestpractical.com
Thu May 24 17:56:20 EDT 2018
The branch 4.0/correspondents-from-makeclicky was deleted and repushed:
was 36a2579bbcae15365f761f113567f47094ef0b98
now df7fee4aea1df4db85c6b66a72e155d9b28ebe99
-: ------- > 1: 58635136 Test for MakeClicky email links on all RTIR ticket types
-: ------- > 2: 1605718e Test for 'Investigate to' links next to MakeClicky email adddresses
-: ------- > 3: 8f394722 Test Correspondents field on 'Investigate to' investigation creation
1: 36a2579b ! 4: df7fee4a Set correspondents from "Investigate to" MakeClicky link
@@ -12,6 +12,31 @@
This change sets Correspondents to the MakeClicky email address
on new tickets created from "Investigate to" links.
+
+diff --git a/html/Callbacks/RTIR/Elements/MakeClicky/Default b/html/Callbacks/RTIR/Elements/MakeClicky/Default
+--- a/html/Callbacks/RTIR/Elements/MakeClicky/Default
++++ b/html/Callbacks/RTIR/Elements/MakeClicky/Default
+@@
+
+ my $email = $args{'value'}; $email =~ s/^<|>$//g;
+ my $escaped_email = $escaper->($email);
++ my $uri_escaped_email = $escaped_email;
++ RT::Interface::Web::EscapeURI(\$uri_escaped_email);
+
+ my $result = qq{<a class="button" href="}.
+ RT::IR->HREFTo(qq{Tools/Lookup.html?$args{'lookup_params'}type=email&q=$escaped_email}). qq{">}
+@@
+ RT::IR->HREFTo( "CreateInQueue.html"
+ . qq{?Incident=$args{'incident'}}
+ . qq{&Lifecycle=}.RT::IR->lifecycle_investigation
+- . "&Requestors=$escaped_email")
++ . "&Requestors=$uri_escaped_email")
+ . qq{">}
+- . loc('Investigate to') .qq{</a>};
++ .loc('Investigate to') .qq{</a>};
+ }
+ my $domain = (split /@/, $email, 2)[1];
+ my $escaped_domain = $escaper->($domain);
diff --git a/html/RTIR/Elements/CreateInRTIRQueueModal b/html/RTIR/Elements/CreateInRTIRQueueModal
--- a/html/RTIR/Elements/CreateInRTIRQueueModal
More information about the rt-commit
mailing list