X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FQuickCreate;h=7ad10463fb4d80d395015dd9657d92b9681a8ac3;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=94be7eb9c5f181b843ae14bd00b21c5f99d8651b;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Elements/QuickCreate b/rt/share/html/Elements/QuickCreate index 94be7eb9c..7ad10463f 100644 --- a/rt/share/html/Elements/QuickCreate +++ b/rt/share/html/Elements/QuickCreate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,37 +45,44 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} +% my $QueueObj = RT::Queue->new($session{'CurrentUser'});
<&| /Widgets/TitleBox, title => loc('Quick ticket creation') &>
callback(CallbackName => 'InFormElement'); > - + - - + - + +<& /Ticket/Elements/AddAttachments, %ARGS, QueueObj => $QueueObj &>
<&|/l&>Subject:
<&|/l&>Queue:<& /Elements/SelectNewTicketQueue, Name => 'Queue' &> +<&|/l&>Queue:<& /Elements/SelectNewTicketQueue, Name => 'Queue', Default => $args->{Queue} &> <&|/l&>Owner:
<&|/l&>Requestors:<& /Elements/EmailInput, Name => 'Requestors', Size => '40', Default => $ARGS{Requestors} || $session{CurrentUser}->EmailAddress &><& /Elements/EmailInput, Name => 'Requestors', Size => '40', Default => $args->{Requestors} || $session{CurrentUser}->EmailAddress, AutocompleteMultiple => 1 &>
<&|/l&>Content:
<& /Elements/Submit, Label => loc('Create') &>
+<%INIT> +my $args = delete $session{QuickCreate} || {}; +