[Rt-commit] rt branch, 4.2/selfservice-allow-linking, created. rt-4.1.8-522-gc78a56b

Alex Vandiver alexmv at bestpractical.com
Fri May 31 18:01:35 EDT 2013


The branch, 4.2/selfservice-allow-linking has been created
        at  c78a56b8eb335eb8579f9b723109c586c79c8981 (commit)

- Log -----------------------------------------------------------------
commit c78a56b8eb335eb8579f9b723109c586c79c8981
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri May 31 17:52:56 2013 -0400

    Allow any provided links in arguments to carry through to ticket creation
    
    Explictly providing locations for SelfService users to add links during
    ticket creation is not what most configurations desire; however, there
    is value in being able to forge a link that will result in a ticket that
    is so linked.  Pass through any linking arguments on the Create page to
    the form, where CreateTicket() in SelfService/Display.html will tend to
    them appopriately.

diff --git a/share/html/SelfService/Create.html b/share/html/SelfService/Create.html
index 750af4c..c0818a7 100644
--- a/share/html/SelfService/Create.html
+++ b/share/html/SelfService/Create.html
@@ -51,6 +51,9 @@
 <form action="Create.html" method="post" enctype="multipart/form-data" name="TicketCreate">
 <input type="hidden" class="hidden" name="id" value="new" />
 <input type="hidden" class="hidden" name="Token" value="<% $ARGS{'Token'} %>" />
+% for my $key (grep {defined $ARGS{$_}} map {+("new-$_", "$_-new")} keys %RT::Link::DIRMAP) {
+<input type="hidden" class="hidden" name="<% $key %>" value="<% $ARGS{$key} %>" />
+% }
 
 <table width="100%">
 <tr>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list