[Rt-commit] rt branch, 4.1-trunk, updated. rt-3.9.7-1046-g567ef34

Shawn Moore sartak at bestpractical.com
Mon Dec 27 19:35:53 EST 2010


The branch, 4.1-trunk has been updated
       via  567ef345957763a27979a67df7c357a31194881a (commit)
      from  10da96cf2094a7164368fa7684b13c537e59dc75 (commit)

Summary of changes:
 lib/RT/Test/Web.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 567ef345957763a27979a67df7c357a31194881a
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Dec 27 18:59:30 2010 -0500

    Implement goto_create_ticket('General')

diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index efffc4c..34f50e8 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -168,7 +168,10 @@ sub goto_create_ticket {
     } elsif ( $queue =~ /^\d+$/ ) {
         $id = $queue;
     } else {
-        die "not yet implemented";
+        my $queue_obj = RT::Queue->new(RT->SystemUser);
+        my ($ok, $msg) = $queue_obj->Load($queue);
+        die "Unable to load queue '$queue': $msg" if !$ok;
+        $id = $queue_obj->id;
     }
 
     $self->get($self->rt_base_url . 'Ticket/Create.html?Queue='.$id);

-----------------------------------------------------------------------


More information about the Rt-commit mailing list