[prev in list] [next in list] [prev in thread] [next in thread]
List: rtir
Subject: [Rtir] RTIR 2.4 and RT 3.8.8 - incompatibility alert
From: Jesse Vincent <jesse () bestpractical ! com>
Date: 2010-05-18 14:44:45
Message-ID: 20100518144445.GS32209 () bestpractical ! com
[Download RAW message or body]
As a heads up, RT 3.8.8 may present issues with the latest RTIR. We'll get this \
sorted out, but don't be _too_ hasty about upgrading without testing.
-Jesse
--
[Attachment #3 (message/rfc822)]
This is a multi-part message in MIME format...
Mon May 17 14:41:47 2010: Request 14907 was acted upon.
Transaction: Ticket created by javoskam@uwaterloo.ca
Queue: rt3
Subject: Problems with RT 3.8.8 and RT-IR 2.4.3
Owner: Nobody
Requestors: javoskam@uwaterloo.ca
Status: new
Ticket <URL: http://issues.bestpractical.com/Ticket/Display.html?id=14907 >
-------------------------------------------------------------------------
It looks like 3.8.8 got rid of the CustomField ColumnMap. i.e.
# diff *8.[78]/share/html/El*/RT__Ticket/Col*
306,325d305
< CustomField => {
< attribute => sub { return shift @_ },
< title => sub { return pop @_ },
< value => sub {
< # Display custom field contents, separated by newlines.
< # For Image custom fields we also show a thumbnail here.
<
< my $values = $_[0]->CustomFieldValues( $_[-1] );
< my @values = map {
< (
< ($_->CustomFieldObj->Type eq 'Image')
< ? \($m->scomp(
'/Elements/ShowCustomFieldImage', Object => $_ ))
< : $_->Content
< ),
< \'<br />',
< } @{ $values->ItemsArrayRef };
< pop @values; # Remove that last <br />
< return @values;
< },
< },
338,339d317
< $COLUMN_MAP->{'CF'} = $COLUMN_MAP->{'CustomField'};
<
Temporary Solution:
Create a plugin (UWisms) containing
onlyhtml/Callbacks/UWisms/Elements/RT__Ticket/ColumnMap/Once (attached)
which defines the missing ColumnMap entries. Include UWisms in the
PlugIn list before RT::IR and all seems well.
Jeff Voskamp
["Once" (text/plain)]
<%INIT>
use RT::Crypt::GnuPG;
$COLUMN_MAP->{'CustomField'} = {
attribute => sub { return shift @_ },
title => sub { return pop @_ },
value => sub {
# Display custom field contents, separated by newlines.
# For Image custom fields we also show a thumbnail here.
my $values = $_[0]->CustomFieldValues( $_[-1] );
my @values = map {
(
($_->CustomFieldObj->Type eq 'Image')
? \($m->scomp( '/Elements/ShowCustomFieldImage', Object => $_ ))
: $_->Content
),
\'<br />',
} @{ $values->ItemsArrayRef };
pop @values; # Remove that last <br />
return @values;
},
};
$COLUMN_MAP->{'CF'} = $COLUMN_MAP->{'CustomField'};
</%INIT>
<%ARGS>
$COLUMN_MAP => undef
</%ARGS>
_______________________________________________
Rtir mailing list
Rtir@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic