diff options
author | mark <mark> | 2011-04-20 01:22:20 +0000 |
---|---|---|
committer | mark <mark> | 2011-04-20 01:22:20 +0000 |
commit | 4a90137be473f0d167c64e475d14f137aba1e1cd (patch) | |
tree | e3fd4fb7c7a1215a86da62e5d717b34fef0afc8a /rt/share/html/Ticket/Display.html | |
parent | 0cdeb16dd536ac7e3d5ed8ab25da73311f0be870 (diff) |
cloned tickets inherit customer links, #11169
Diffstat (limited to 'rt/share/html/Ticket/Display.html')
-rwxr-xr-x | rt/share/html/Ticket/Display.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rt/share/html/Ticket/Display.html b/rt/share/html/Ticket/Display.html index 6fd8b85e6..a6850bb1e 100755 --- a/rt/share/html/Ticket/Display.html +++ b/rt/share/html/Ticket/Display.html @@ -104,6 +104,14 @@ unless ($id || $TicketObj) { if ($ARGS{'id'} eq 'new') { # {{{ Create a new ticket + # Massage customer IDs into member links. + my @cust_uris = map { + /^(\d+)$/ && "freeside://freeside/cust_main/$1" + } split(' ', $ARGS{'new-Customer'}); + + $ARGS{'new-MemberOf'} = + join(' ', $ARGS{'new-MemberOf'}, @cust_uris); + my $Queue = new RT::Queue( $session{'CurrentUser'} ); $Queue->Load($ARGS{'Queue'}); unless ( $Queue->id ) { |