Subject: | CustomFields change in RT 3.8 |
Date: | Tue, 7 Oct 2008 14:12:20 -0500 |
To: | bug-RT-Client-REST [...] rt.cpan.org |
From: | "Tony Lambiris" <tonylambiris [...] gmail.com> |
With 3.8.0 and beyond, the CustomFields no longer match on "cf-", but
instead use "CF.{Field Name}". I have added a block of code to
Object.pm that should work with the old CF layout as well as the new
layout:
line 439 of Object.pm:
if ($key =~ s/^cf(\.|-)//) { # Handle custom fields.
if ($key =~ /\{(.*)\}/) {
$key =~ tr/}{//d;
}
I'm not an expert perl coder, but the change to the first line now
checks both "cf-" as well as "cf.", then if there are brackets around
the key name, it will delete them with the following line.
Thanks.