[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-190-gfb836bf

Jesse Vincent jesse at bestpractical.com
Thu Nov 11 03:19:14 EST 2010


The branch, 3.8-trunk has been updated
       via  fb836bf4302a7450beaa1e3d36dc0509fe2119c0 (commit)
       via  7d9ba2a3e3b2e774ab5f91241d91aaa0a277e957 (commit)
      from  057552287159e801535e59b8fbd5bd98d1322069 (commit)

Summary of changes:
 lib/RT/Handle.pm                           |    9 +++++++++
 share/html/Ticket/Elements/ShowTransaction |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 7d9ba2a3e3b2e774ab5f91241d91aaa0a277e957
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Oct 26 17:19:03 2010 -0400

    Add Transaction type to CSS classes in Ticket history for easier local
    theming

diff --git a/share/html/Ticket/Elements/ShowTransaction b/share/html/Ticket/Elements/ShowTransaction
index 9230595..53756ff 100755
--- a/share/html/Ticket/Elements/ShowTransaction
+++ b/share/html/Ticket/Elements/ShowTransaction
@@ -45,7 +45,7 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-<div class="ticket-transaction <% $type_class %> <% $RowNum % 2 ? 'odd' : 'even' %>">
+<div class="ticket-transaction <% $type_class %> <%$type%> <% $RowNum % 2 ? 'odd' : 'even' %>">
 % $m->callback( titlebar_cmd => \$titlebar_commands, Transaction => $Transaction, %ARGS, CallbackName => 'ModifyDisplay' );
 
 <div class="ticket-transaction">

commit fb836bf4302a7450beaa1e3d36dc0509fe2119c0
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Oct 19 16:06:48 2010 +0900

    Postgres 9 changed their default representation of BYTEA values. RT
    expects the older "Escape" version. Use that instead.

diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index da7a672..18f64a0 100755
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -119,6 +119,15 @@ sub Connect {
         $self->dbh->do("SET NAMES 'utf8'") if $version >= 4.1;
     }
 
+
+    if ( $db_type eq 'Pg' ) {
+        my $version = $self->DatabaseVersion;
+        ($version) = $version =~ /^(\d+\.\d+)/;
+        $self->dbh->do("SET bytea_output = 'escape'") if $version >= 9.0;
+    }
+
+
+
     $self->dbh->{'LongReadLen'} = RT->Config->Get('MaxAttachmentSize');
 }
 

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


More information about the Rt-commit mailing list