980693b48784a34c46d2986c0ec1e0327654e5bf
[manu/RT-Extension-MandatoryRequestor.git] / html / Callbacks / MandatoryRequestor / Ticket / Create.html / BeforeCreate
1 <%INIT>
2 my $ARGSRef = $ARGS{'ARGSRef'};
3 if ( (!exists $$ARGSRef{'AddMoreAttach'}) and (defined($$ARGSRef{'id'}) and $$ARGSRef{'id'} eq 'new') ) {
4     if ( (!$$ARGSRef{'Requestor'}) || ($$ARGSRef{'Requestor'} =~ /^[ \t]*$/) ) {
5         $$skip_create = 1;
6         push @{$results}, loc('Error: empty requestor');
7     }
8 }
9 </%INIT>
10 <%ARGS>
11 $skip_create => undef
12 $results => undef
13 </%ARGS>