Subject: | got an erorr |
Date: | Thu, 8 Jun 2017 09:56:54 +0300 |
To: | bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org |
From: | Артем Иванов <whiskeybar77 [...] gmail.com> |
Hello. Help me please with some error on using
RT-Extension-MandatoryOnTransition.
Or send me in a forum where I can ask such a question.
I've got fresh installed rt 4.4.1. And MandatoryOnTransition extension
installed.
RT_Siteconfig.pm include this strings
Set( %MandatoryOnTransition,
'*' => {
'* -> resolved' => 'TimeWorked'
},
);
and
Plugin ( "RT::Extension::MandatoryOnTransition" );
So i try to resolve a test ticket with a TimeWorked field filled with any
number or empty and got an error in web saying - look into logs.
Logs says this
Jun 8 09:54:10 srv-rt3 RTTEST: [2385] Can't use string ("TimeWorked") 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:120]#012
[/opt/rt4/share/html/Widgets/TitleBox:61]#012
[/opt/rt4/share/html/Ticket/Update.html:125]#012
[/opt/rt4/share/html/Ticket/autohandler:66]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:696]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:375]#012
[/opt/rt4/share/html/autohandler:53]
--
С уважением,
Иванов Артём