diff options
author | mark <mark> | 2010-09-01 23:39:23 +0000 |
---|---|---|
committer | mark <mark> | 2010-09-01 23:39:23 +0000 |
commit | 8c5a780343e027058a51692d8b9b8140c88ce6c7 (patch) | |
tree | ce5cd525de2adebbc463fb63795716aa61812d35 /rt/share/html/Ticket | |
parent | 60a603adb62f03d90391b16ce5b89242adf9c1d5 (diff) |
RT mandatory custom fields, RT#9260
Diffstat (limited to 'rt/share/html/Ticket')
-rw-r--r-- | rt/share/html/Ticket/Elements/CheckMandatoryFields | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rt/share/html/Ticket/Elements/CheckMandatoryFields b/rt/share/html/Ticket/Elements/CheckMandatoryFields new file mode 100644 index 000000000..3d0324f98 --- /dev/null +++ b/rt/share/html/Ticket/Elements/CheckMandatoryFields @@ -0,0 +1,9 @@ +<%init> + +my $TicketObj = $ARGS{'Ticket'} or return (); +my $ARGSRef = $ARGS{'ARGSRef'}; +my @fields = grep { $_->Required } + @{ $TicketObj->CustomFields->ItemsArrayRef }; +return grep { !defined($TicketObj->FirstCustomFieldValue($_->id)) } @fields; + +</%init> |