[Rt-commit] rtir branch, 2.9-trunk, updated. 3.0.0rc1-42-g97fdc1c

Kevin Falcone falcone at bestpractical.com
Mon Apr 8 17:48:11 EDT 2013


The branch, 2.9-trunk has been updated
       via  97fdc1caa7d9b752c0d211f568715a0a3b9066dd (commit)
      from  831a509f660fea594f326eba40d5d576d8ddc6a1 (commit)

Summary of changes:
 t/custom-fields/on-transactions.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 97fdc1caa7d9b752c0d211f568715a0a3b9066dd
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Apr 8 17:33:12 2013 -0400

    Pattern is a string, not a qr//
    
    If this was stringified, we'd end up with (?^:) or (?-xism:()) wrapped
    around the pattern in the DB (and in fact DBD::mysql stringifies, but
    DBD::Pg refuses to do so, meaning this test cannot run on Postgres).

diff --git a/t/custom-fields/on-transactions.t b/t/custom-fields/on-transactions.t
index 34a9d5f..c63e3f0 100644
--- a/t/custom-fields/on-transactions.t
+++ b/t/custom-fields/on-transactions.t
@@ -13,7 +13,7 @@ my $cf;
         Name       => $cf_name,
         LookupType => 'RT::Queue-RT::Ticket-RT::Transaction',
         Type       => 'FreeformSingle',
-        Pattern    => qr/(?#not a magic)^(?!magic).*$/,
+        Pattern    => '(?#not a magic)^(?!magic).*$',
     );
     ok( $id, "created custom field" ) or diag "error: $msg";
 

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


More information about the Rt-commit mailing list