Talk:OnCreateCheckCF/@comment-65.183.159.254-20120816191545

From Request Tracker Wiki
Revision as of 14:15, 16 August 2012 by 65.183.159.254 (talk) (Created page with " if ($val ne '') { return 0; That only makes sure the first Mandatory field is filled in. Subsequent fields are ignored. if ($vad == '(?#Mandatory)') { ...")
(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;