Talk:OnCreateCheckCF/@comment-65.183.159.254-20120816191545

From Request Tracker Wiki
Revision as of 15:52, 6 April 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
if ($val ne ) {
              return 0;

That only makes sure the first Mandatory field is filled in. Subsequent fields are ignored.

      if ($vad == '(?#Mandatory)') {
          my $val = $ticket->FirstCustomFieldValue($nam);
          unless ($val) {
              $ticket->SetStatus("rejected");
              last; # Don't need to keep looking, we found a bad one
          }
      }
   }
   
   return 1;