1. 11 Aug, 2014 1 commit
    • Todd Wade's avatar
      add a way to give an attribute an ObjectType besides RT::System · e7290b0e
      Todd Wade authored
      This code allows you to provide a code ref in the Object field in an Attribute
      initialdata hash that returns an object that can be used as the ObjectType for
      the Attribute:
      
      @Attributes = ({
          Name        => 'SavedSearch',
          Description => 'New Tickets in SomeQueue',
          Object      => sub {
              my $GroupName = 'SomeQueue Group';
              my $group     = RT::Group->new( RT->SystemUser );
      
              my( $ret, $msg ) = $group->LoadUserDefinedGroup( $GroupName );
              die $msg unless $ret;
      
              return $group;
          },
          Content     => {
              Format =>  <<'        END_OF_FORMAT',
      ....
              END_OF_FORMAT
              Query   => "Status = 'new' AND Queue = 'SomeQueue'",
              OrderBy => 'id',
              Order   => 'DESC'
          },
      });
      e7290b0e
  2. 05 Aug, 2014 3 commits
  3. 04 Aug, 2014 2 commits
  4. 29 Jul, 2014 1 commit
  5. 25 Jul, 2014 1 commit
  6. 23 Jul, 2014 3 commits
  7. 22 Jul, 2014 2 commits
  8. 21 Jul, 2014 1 commit
  9. 18 Jul, 2014 1 commit
  10. 17 Jul, 2014 7 commits
  11. 16 Jul, 2014 4 commits
  12. 10 Jul, 2014 2 commits
  13. 09 Jul, 2014 4 commits
  14. 08 Jul, 2014 1 commit
  15. 07 Jul, 2014 7 commits