Skip Menu |

This queue is for tickets about the RT-Extension-MandatoryOnTransition CPAN distribution.

Report information
The Basics
Id: 117326
Status: resolved
Priority: 0/
Queue: RT-Extension-MandatoryOnTransition

People
Owner: Nobody in particular
Requestors: p.voronov [...] Multiflex.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: bug-RT-Extension-MandatoryOnTransition@rt.cpan.org
Date: Tue, 30 Aug 2016 09:56:19 +0000
To: "bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org" <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>
From: Воронов Петр Леонидович <p.voronov [...] Multiflex.ru>
I'm getting this error while opening new ticket: Can't use string ("CF.TicketType") as an ARRAY ref while "strict refs" in use at /opt/rt4/local/plugins/RT-Extension-MandatoryOnTransition/lib/RT/Extension/MandatoryOnTransition.pm line 287.#012#012Stack:#012 [/opt/rt4/local/plugins/RT-Extension-MandatoryOnTransition/lib/RT/Extension/MandatoryOnTransition.pm:287]#012 [/opt/rt4/local/plugins/RT-Extension-MandatoryOnTransition/html/Callbacks/RT-Extension-MandatoryOnTransition/Ticket/Update.html/AfterWorked:5]#012 [/opt/rt4/share/html/Ticket/Update.html:127]#012 [/opt/rt4/share/html/Widgets/TitleBox:56]#012 [/opt/rt4/share/html/Ticket/Update.html:132]#012 [/opt/rt4/share/html/Ticket/autohandler:66]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]#012 [/opt/rt4/share/html/autohandler:53] My CF TicketType has about 70 entries list. That's the conditions: Set( %MandatoryOnTransition, '*' => { '* -> open' => 'CF.TicketType', }, ); Regards, Pete
I think your configuration is incorrect. Try this: Set( %MandatoryOnTransition, '*' => { '* -> open' => ['CF.TicketType'], }, ); On Tue Aug 30 05:56:35 2016, p.voronov@Multiflex.ru wrote: Show quoted text
> I'm getting this error while opening new ticket: > > Can't use string ("CF.TicketType") as an ARRAY ref while "strict refs" > in use at /opt/rt4/local/plugins/RT-Extension- > MandatoryOnTransition/lib/RT/Extension/MandatoryOnTransition.pm line > 287.#012#012Stack:#012 [/opt/rt4/local/plugins/RT-Extension- > MandatoryOnTransition/lib/RT/Extension/MandatoryOnTransition.pm:287]#012 > [/opt/rt4/local/plugins/RT-Extension- > MandatoryOnTransition/html/Callbacks/RT-Extension- > MandatoryOnTransition/Ticket/Update.html/AfterWorked:5]#012 > [/opt/rt4/share/html/Ticket/Update.html:127]#012 > [/opt/rt4/share/html/Widgets/TitleBox:56]#012 > [/opt/rt4/share/html/Ticket/Update.html:132]#012 > [/opt/rt4/share/html/Ticket/autohandler:66]#012 > [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]#012 > [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]#012 > [/opt/rt4/share/html/autohandler:53] > > My CF TicketType has about 70 entries list. > > That's the conditions: > > Set( %MandatoryOnTransition, > '*' => { > '* -> open' => 'CF.TicketType', > }, > ); > > Regards, > Pete