FW: Cloning an existing ticket

I’m running RT 4.0.10.

I tried installing rt-extension-cloneticket-withdata. It looks
like that hasn’t been updated
in a while - not since rt 4 anyways.

When I try cloning a ticket, I get:

RT: Not an ARRAY reference at
/opt/rt4/local/plugins/RT-Extension-CloneTicket-
WithData/html/Ticket/Clone/index.html line
183.#012#012Stack:#012
[/opt/rt4/local/plugins/RT-Extension-CloneTicket-
WithData/html/Ticket/Clone/index.html:183]#012
[/opt/rt4/share/html/Ticket/autohandler:66]#012
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:634]#012
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:335]#012
[/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

Yep - that’s a change between 3.8 and 4.0.

The Queue cache is stored in $session{$cache_key}{queues} rather than
directly under the cache key. Should be a simple enough change to the
module to get past that error. If that fixes it for you, send a pull
request?

-kevin

Made the above change (think it was in 4 places) in the index.html file (only one I found with that line) and now I get:

[Tue Jun 11 22:59:49 2013] [error]: could not find component for path ‘/Ticket/Elements/Tabs’

Stack:
[/opt/rt4/local/plugins/RT-Extension-CloneTicket-WithData/html/Ticket/Clone/index.html:50]
[/opt/rt4/share/html/Ticket/autohandler:66]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:634]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:335]
[/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

That path is actually to a Callbacks file included with the plugin, which appears to function since it’s what adds the “clone” link to the ticket, which is there, because I get the error after clicking it.

Any ideas? This is beyond my programming level. If it’s not a quick fix, I’ll probably have to ditch it (or hope the original author sees this and updates the module).

Thanks!

Hi Brent,
if you are under RT 4, I think this: [Tue Jun 11 22:59:49 2013] [error]: could not find component for path ‘/Ticket/Elements/Tabs’ have to do with changed from Tabs to Privileged

This is was written for RT 3.6 or 3.8

Torsten-----Ursprüngliche Nachricht-----
Von: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] Im Auftrag von Brent Wiese
Gesendet: Mittwoch, 12. Juni 2013 01:05
An: rt-users@lists.bestpractical.com
Betreff: [rt-users] FW: Cloning an existing ticket

On Mon, Jun 03, 2013 at 09:52:24PM +0000, Brent Wiese wrote:

I’m running RT 4.0.10.

I tried installing rt-extension-cloneticket-withdata. It looks
like that hasn’t been updated
in a while - not since rt 4 anyways.

When I try cloning a ticket, I get:

RT: Not an ARRAY reference at
/opt/rt4/local/plugins/RT-Extension-CloneTicket-
WithData/html/Ticket/Clone/index.html line
183.#012#012Stack:#012
[/opt/rt4/local/plugins/RT-Extension-CloneTicket-
WithData/html/Ticket/Clone/index.html:183]#012
[/opt/rt4/share/html/Ticket/autohandler:66]#012
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:634]#012
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:335]#012
[/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

Yep - that’s a change between 3.8 and 4.0.

The Queue cache is stored in $session{$cache_key}{queues} rather than
directly under the cache key. Should be a simple enough change to the
module to get past that error. If that fixes it for you, send a pull
request?

-kevin

Made the above change (think it was in 4 places) in the index.html file (only one I found with that line) and now I get:

[Tue Jun 11 22:59:49 2013] [error]: could not find component for path ‘/Ticket/Elements/Tabs’

Stack:
[/opt/rt4/local/plugins/RT-Extension-CloneTicket-WithData/html/Ticket/Clone/index.html:50]
[/opt/rt4/share/html/Ticket/autohandler:66]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:634]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:335]
[/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

That path is actually to a Callbacks file included with the plugin, which appears to function since it’s what adds the “clone” link to the ticket, which is there, because I get the error after clicking it.

Any ideas? This is beyond my programming level. If it’s not a quick fix, I’ll probably have to ditch it (or hope the original author sees this and updates the module).

Thanks!

RT Training in Seattle, June 19-20: Training — Best Practical Solutions

Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Holger Ketz (Stellv.), Jan-Hendrik Köstergarten (Stellv.), Bruno Mang, Christian Marnetté, Jens Wollesen, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg Geschäftsführender Verwaltungsrat: Karl Gernandt