projects
/
manu
/
RT-Extension-MandatorySubject.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a callback to check subject in QuickCreate (need RT >= 3.8.7)
[manu/RT-Extension-MandatorySubject.git]
/
html
/
Callbacks
/
MandatorySubject
/
index.html
/
Initial
1
<%INIT>
2
my $ARGSRef = $ARGS{'ARGSRef'};
3
if ( $$ARGSRef{'QuickCreate'} ) {
4
if ( (!$$ARGSRef{'Subject'}) || ($$ARGSRef{'Subject'} =~ /^[ \t]*$/) ) {
5
$$skip_create = 1;
6
push @{$results}, loc('Error: empty subject');
7
}
8
}
9
</%INIT>
10
<%ARGS>
11
$skip_create => undef
12
$results => undef
13
</%ARGS>