X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=share%2Fhtml%2FSelfService%2FCreate.html;h=76126ae18128455e498696fb052578562381ebcc;hb=5b0d0914c018db8e45a5dad8991227f4bcd93c4f;hp=43d4b7bc4d397638c727164eb0ea32dcc936ff92;hpb=741c1d2928e9fc176a2479d8deda8a61d5b7f48f;p=usit-rt.git
diff --git a/share/html/SelfService/Create.html b/share/html/SelfService/Create.html
index 43d4b7b..76126ae 100644
--- a/share/html/SelfService/Create.html
+++ b/share/html/SelfService/Create.html
@@ -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 $@");