[Rt-commit] r9134 - in rtir/branches/2.3-EXPERIMENTAL: . t

sartak at bestpractical.com sartak at bestpractical.com
Sun Sep 23 22:55:39 EDT 2007


Author: sartak
Date: Sun Sep 23 22:55:39 2007
New Revision: 9134

Modified:
   rtir/branches/2.3-EXPERIMENTAL/   (props changed)
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
   rtir/branches/2.3-EXPERIMENTAL/t/021-gnupg-on-create.t

Log:
 r43015 at onn:  sartak | 2007-09-23 22:55:20 -0400
 Make the change that ruz suggested with putting $ARGS{Create} back in


Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html	Sun Sep 23 22:55:39 2007
@@ -406,7 +406,7 @@
 push @results, $m->comp( 'SELF:ProcessAttachments', %ARGS );
 
 my @gnupg_keys_issues;
-if ( $ARGS{'Encrypt'} ) {
+if ( $ARGS{'Create'} && $ARGS{'Encrypt'} ) {
 
     my @recipients = $m->comp(
         '/Ticket/Elements/PreviewScrips:GetRecipientsOnCreate',

Modified: rtir/branches/2.3-EXPERIMENTAL/t/021-gnupg-on-create.t
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/t/021-gnupg-on-create.t	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/t/021-gnupg-on-create.t	Sun Sep 23 22:55:39 2007
@@ -75,7 +75,7 @@
     $agent->tick( Encrypt => 1 );
     $agent->field( Requestors => 'rt-test at example.com' );
     $agent->field( Content => 'Some content' );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -110,7 +110,7 @@
     $agent->tick( Encrypt => 1 );
     $agent->field( Requestors => 'rt-test at example.com' );
     $agent->field( Content => 'Some content' );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -125,7 +125,7 @@
     is scalar $input->possible_values, 1, 'one option';
 
     $agent->select( 'UseKey-rt-test at example.com' => $fpr1 );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -157,7 +157,7 @@
     $agent->tick( Encrypt => 1 );
     $agent->field( Requestors => 'rt-test at example.com' );
     $agent->field( Content => 'Some content' );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -172,7 +172,7 @@
     is scalar $input->possible_values, 2, 'two options';
 
     $agent->select( 'UseKey-rt-test at example.com' => $fpr1 );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -202,7 +202,7 @@
     $agent->tick( Encrypt => 1 );
     $agent->field( Requestors => 'rt-test at example.com' );
     $agent->field( Content => 'Some content' );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -229,7 +229,7 @@
     $agent->tick( Encrypt => 1 );
     $agent->field( Requestors => 'rt-test at example.com' );
     $agent->field( Content => 'Some content' );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'
@@ -262,7 +262,7 @@
     $agent->field( Requestors => 'rt-test at example.com' );
     $agent->field( Content => 'Some content' );
     $agent->field( Attachment => $0 );
-    $agent->submit;
+    $agent->click('Create');
     $agent->content_like(
         qr/You are going to encrypt outgoing email messages/i,
         'problems with keys'


More information about the Rt-commit mailing list