X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FQuickCreate;h=7ad10463fb4d80d395015dd9657d92b9681a8ac3;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=a4d5235e27d40c537e06460dab0583878d42a9d5;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Elements/QuickCreate b/rt/share/html/Elements/QuickCreate index a4d5235e2..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-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,33 +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} || {}; +