[rt-users] RT 3.4.4+RTFM 2.2.0rc1 - 2 problems
Grzegorz Kocur
gkocur at ux.pl
Fri Dec 9 16:16:03 EST 2005
Hi, i just installed rt 3.4.4 and rtfm 2.2.0rc1, and found 2 problems:
1.
If i want to include rtfm article to answer, after clicking "Go!" i get:
error: Can't locate object method "count" via package
"RT::ObjectCustomFieldValues" at
/usr/local/lib/rt3/share/html/RTFM/Article/Elements/Preformatted line
28.
context:
...
24: %my $cfs = $Article->CustomFields;
25: % while (my $cf = $cfs->Next) {
26: % my $values = $Article->CustomFieldValues($cf->Id);
27:
28: % if ($values->count == 1) {
29: % my $value = $values->First;
30: % my $content = $value ? $value->Content : "";
31: % if ($content =~ /<(.{1,5})>/) {
32: % $content = de_htmlify($content);
...
code stack:
/usr/local/lib/rt3/share/html/RTFM/Article/Elements/Preformatted:28
/usr/local/lib/rt3/share/html/Callbacks/RTFM/Elements/MessageBox/Default:24
/usr/local/lib/rt3/share/html/Elements/Callback:83
/usr/local/lib/rt3/share/html/Elements/MessageBox:46
/usr/local/lib/rt3/share/html/Ticket/Update.html:122
/usr/local/lib/rt3/share/html/autohandler:215
Changing count to Count (and cleaning cache) fixed this problem.
2. Sending message with rtmf article attached produces this:
error: Can't call method "Id" on an undefined value at
/usr/local/lib/rt3/local/lib/RT/URI/fsck_com_rtfm.pm line 147.
context:
...
143: }
144: }
145:
146: $self->{'object'} = $article;
147: return ($article->Id);
148: }
149:
150: =head2 IsLocal
151:
...
code stack: /usr/local/lib/rt3/local/lib/RT/URI/fsck_com_rtfm.pm:147
/usr/local/lib/rt3/lib/RT/URI.pm:144
/usr/local/lib/rt3/lib/RT/Ticket_Overlay.pm:2610
/usr/local/lib/rt3/lib/RT/Ticket_Overlay.pm:2589
/usr/local/lib/rt3/lib/RT/Interface/Web.pm:1496
/usr/local/lib/rt3/lib/RT/Interface/Web.pm:1446
/usr/local/lib/rt3/share/html/Ticket/Display.html:144
/usr/local/lib/rt3/share/html/Ticket/Update.html:214
/usr/local/lib/rt3/share/html/autohandler:215
After changing fsck_com_rtfm.pm to file from rtmf 2.0.4 it's OK.
--
Grzegorz Kocur
Ux Systems http://www.ux.pl
More information about the rt-users
mailing list