TicketIDMatches

From Request Tracker Wiki
Revision as of 16:39, 6 April 2016 by Admin (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This condition appears to be missing a database row as part of the example

package RT::Condition::TicketIDMatches;
 
 use RT::Condition::Generic;
 
 use strict;
 use vars qw/@ISA/;
 @ISA = qw(RT::Condition::Generic);
 
 
 =head2 IsApplicable
 
 This happens on every transaction. it's always applicable
 
 =cut
 
 sub IsApplicable {
    my $self = shift;
    if ($self->TicketObj->Id eq $self->Argument)  {
        return(1);
    }
    else {
        return(undef);
    }
 
 eval "require RT::Condition::TicketIDMatches_Vendor";
 die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/TicketIDMatches_Vendor.pm});
 eval "require RT::Condition::TicketIDMatches_Local";
 die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/TicketIDMatches_Local.pm});
 
 1;