Skip Menu |

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

Report information
The Basics
Id: 125500
Status: rejected
Worked: 30 min
Priority: 0/
Queue: RT-Extension-ConditionalCustomFields

People
Owner: GIBUS [...] cpan.org
Requestors: skupko.sk [...] gmail.com
Cc:
AdminCc:

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



Subject: Not working on RT4.2.10
Updating Custom Field with "Customfield is conditioned by" is not saved.
Have you got some more infos in rt.log?
OK, I've tested on RT 4.2.10. It seems that your issue arises when the patch to RT has not been applied. See README: Patch your RT ConditionalCustomFields requires a small patch to add necessary Callbacks on versions of RT superior to 4.2.3. (The patch has been submitted to BestPractical in order to be included in future RT releases, as of RT 4.4.2, some parts of the patch are already included, but some other parts still required to apply this patch.) For RT 4.2, apply the included patch: cd /opt/rt4 # Your location may be different patch -p1 < /download/dir/RT-Extension-ConditionalCustomFields/patches/4.2-add-callbacks-to-extend-customfields-capabilities.patch
Subject: Re: [rt.cpan.org #125500] Not working on RT4.2.10
Date: Fri, 8 Jun 2018 15:03:05 +0200
To: bug-RT-Extension-ConditionalCustomFields [...] rt.cpan.org
From: Peter Viskup <skupko.sk [...] gmail.com>
Upgraded to RT 4.4.2 and still not working. Realized it is conflicting with RT::IR extension. When I disable RT::IR, the Extension is working. With latest RT::IR enabled we get following error on display of Modify.html page: Jun 8 14:51:54 security-infra RT: [9509] Can't call method "QueueObj" on an undefined value at /opt/rt4/local/plugins/RT-IR/html/Callbacks/RTIR/Elements/EditCustomField/EditComponentName line 51.#012#012Stack:#012 [/opt/rt4/local/plugins/RT-IR/html/Callbacks/RTIR/Elements/EditCustomField/EditComponentName:51]#012 [/opt/rt4/share/html/Elements/EditCustomField:127]#012 [/opt/rt4/share/html/Admin/CustomFields/Modify.html:139]#012 [/opt/rt4/share/html/Admin/autohandler:49]#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] Peter On Wed, Jun 6, 2018 at 2:09 PM, Gérald Sédrati-Dinet via RT <bug-RT-Extension-ConditionalCustomFields@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=125500 > > > OK, I've tested on RT 4.2.10. It seems that your issue arises when the patch to RT has not been applied. See README: > > Patch your RT > > ConditionalCustomFields requires a small patch to add necessary Callbacks on versions of RT superior to 4.2.3. (The patch has been submitted to BestPractical in order to be included in future RT releases, as of RT 4.4.2, some parts of the patch are already included, but some other parts still required to apply this patch.) > > For RT 4.2, apply the included patch: > > cd /opt/rt4 # Your location may be different > patch -p1 < /download/dir/RT-Extension-ConditionalCustomFields/patches/4.2-add-callbacks-to-extend-customfields-capabilities.patch
Le Ven 08 Juin 2018 15:04:17, skupko.sk@gmail.com a écrit : Show quoted text
> Upgraded to RT 4.4.2 and still not working. > Realized it is conflicting with RT::IR extension. When I disable > RT::IR, the Extension is working. > > With latest RT::IR enabled we get following error on display of > Modify.html page: > > Jun 8 14:51:54 security-infra RT: [9509] Can't call method "QueueObj" > on an undefined value at > /opt/rt4/local/plugins/RT- > IR/html/Callbacks/RTIR/Elements/EditCustomField/EditComponentName > line 51.#012#012Stack:#012 > [/opt/rt4/local/plugins/RT- > IR/html/Callbacks/RTIR/Elements/EditCustomField/EditComponentName:51]#012 > [/opt/rt4/share/html/Elements/EditCustomField:127]#012 > [/opt/rt4/share/html/Admin/CustomFields/Modify.html:139]#012 > [/opt/rt4/share/html/Admin/autohandler:49]#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]
Hi Peter, I haven't chance to use RT::IR yet but from the error log you've posted, it seems that the issue is unrelated to RT::Extension::ConditionalCustomFields. For what I can guess, the callback opt/rt4/local/plugins/RT-IR/html/Callbacks/RTIR/Elements/EditCustomField/EditComponentName has been called with Object argument being undefined. So you should investigate why, but ConditionalCustomFields doesn't do anything at this point. Also, I've seen that this callback is no more included in last version or RT::IR https://github.com/bestpractical/rtir/tree/4.0-trunk/html/Callbacks/RTIR/Elements.