X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSelfService%2FCreate.html;h=978491798785a1b314b8fd6406687ae425ed2b0f;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=e28ab0f57833251dc5e35f9e1d487f2cd77cb67a;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/SelfService/Create.html b/rt/share/html/SelfService/Create.html index e28ab0f57..978491798 100755 --- a/rt/share/html/SelfService/Create.html +++ b/rt/share/html/SelfService/Create.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -91,16 +91,7 @@ <& /Ticket/Elements/EditCustomFields, %ARGS, QueueObj => $queue_obj &> - - -%# FIXME: if failed customfields validation, attachement needs to be choosen -%# again by user. -<&|/l&>Attach file: - - - - - +<& /Ticket/Elements/AddAttachments, %ARGS, QueueObj => $queue_obj &> @@ -128,10 +119,12 @@ my $ValidCFs = $m->comp( ARGSRef => \%ARGS ); +ProcessAttachments(ARGSRef => \%ARGS); + my $skip_create = 0; $m->callback( CallbackName => 'BeforeCreate', ARGSRef => \%ARGS, skip_create => \$skip_create, results => \@results ); -if ( defined($ARGS{'id'}) and $ARGS{'id'} eq 'new' ) { # new ticket? +if ( !exists $ARGS{'AddMoreAttach'} and defined($ARGS{'id'}) and $ARGS{'id'} eq 'new' ) { # new ticket? if ( $ValidCFs && !$skip_create ) { $m->comp('Display.html', %ARGS); $RT::Logger->crit("After display call; error is $@");