[rt-users] a couple bugs in RT 3.8.3
Jo Rhett
jrhett at netconsonance.com
Thu Jun 4 21:27:01 EDT 2009
On Jun 4, 2009, at 5:44 AM, Guadagnino Cristiano wrote:
> - the new "homepage refresh interval" option in "preferences"
> doesn't work
This works for me.
> - when I'm root and I click on "configuration"->"users"-
> >"whichever_user_name"->"History", I have this error message:
>
> Can't locate object method "Name" via package "No object mapping for
> field" (perhaps you forgot to load "No object mapping for field"?)
> at /opt/rt3/local/plugins/RT-Extension-ForkTicket/html/Callbacks/RT-
> Extension-ForkTicket/Ticket/Elements/ShowTransaction/ModifyCommand
> line 7.
>
> it seems the culprit is the "ForkTicket" extension… maybe it is
> broken by the recent upgrade?
Yes, one of the callbacks is. My hack was such: (note that this also
disables Pre/Post-task which we don't use -- but you can easily add
them back in)
--- ModifyCommand_orig 2009-02-19 11:42:06.000000000 -0800
+++ ModifyCommand 2009-06-02 15:49:50.000000000 -0700
@@ -4,10 +4,15 @@
my $PosttaskURL = "[<a href=\"" . $ForkPath . "?
CreateType=Posttask&QuoteTransaction=" . $Transaction->Id .
"\">PostTask</a>]";
my $CloneURL = "[<a href=\"" . $ForkPath . "?
CreateType=Clone&QuoteTransaction=" . $Transaction->Id . "\">Clone</
a>]";
-if ($Transaction->Type =~ /^(Create|Correspond|Comment)$/ && $Ticket-
>QueueObj->Name !~ /^(Approval)$/ && $Transaction->TicketObj-
>CurrentUserHasRight('ModifyTicket')) {
- $$titlebar_cmd .= $PretaskURL;
- $$titlebar_cmd .= $PosttaskURL;
- $$titlebar_cmd .= $CloneURL;
+if( ref( $Ticket->QueueObj ) ) {
+ if ($Transaction->Type =~ /^(Create|Correspond|Comment)$/ &&
$Ticket->QueueObj->Name !~ /^(Approval)$/ && $Transaction->TicketObj-
>CurrentUserHasRight('ModifyTicket')) {
+ $$titlebar_cmd .= $CloneURL;
+ }
+}
+else {
+ if ($Transaction->Type =~ /^(Create|Correspond|Comment)$/ &&
$Transaction->TicketObj->CurrentUserHasRight('ModifyTicket')) {
+ $$titlebar_cmd .= $CloneURL;
+ }
}
</%INIT>
<%ARGS>
--
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090604/3c37f928/attachment.htm>
More information about the rt-users
mailing list