RT Extension ReferenceIDoitObjects unter Perl 5.16 geht nicht
-
Hallo,
ich versuche ReferenceIDoitObjects 0.9 mit i-doit 0.9.9.9 pro zum Laufen zu bekommen unter Perl 5.16 zum Laufen zu bekommen.
Leider bekomme ich beim Aufruf einer Ticket Detail Seite im RT den Fehler
Can't locate Switch.pm in @INC (@INC contains: …
at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects line 114.Switch.pm ist wohl seit perl 5.14 nicht mehr inkludiert, gibt es einen Workarround?
Viele Grüße,
Matthias Peplow
-
Hallo,
ich habe den Code etwas modifiziert und bin jetzt etwas weiter.
In
/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects und
/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjectshabe ich in Zeile 114 bzw. 113
use Switch;
auskommentiert und in
in SelectIDoitObjects ab Zeile 182 ds Switch Statement durch folgenden Code ersetzt:
use feature qw {switch};
given ($IDoitDefaultView) {
when ('object') { $IDoitView = 0; }
when ('tree') { $IDoitView = 1; }
when ('item') { $IDoitView = 2; }
}Viele Grüße,
Matthias
-
Hallo Matthias,
vielen Dank für Deinen Fix! Wir haben den Code heute dementsprechend angepasst und eine neue Version veröffentlicht: http://www.smartitsm.org/blog/entry/rt-extension-referenceidoitobjects_0.91
Ben
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login