Difference between revisions of "Talk:OnCreateCheckCF/@comment-65.183.159.254-20120816191545"

From Request Tracker Wiki
Jump to navigation Jump to search
(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)') { ...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 16:52, 6 April 2016

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;