Item14828: Problem with Category.pm getIconUrl
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
I did a fresh foswiki 2.0.6 install with version 6.01 version of the classification plugin. Then I created a new Web with the _ClassificationTemplate template. I could not open the Web but was greeted with
Undefined subroutine &Foswiki::Plugins::JQueryPlugin::Plugins::getIconUrlPath called at /srv/foswiki/lib/Foswiki/Plugins/ClassificationPlugin/Category.pm line 141
I changed that line to
return Foswiki::Plugins::JQueryPlugin::handleJQueryIconPath($Foswiki::Plugins::SESSION, {
_DEFAULT => $icon
});
and then the I was able to open WebHome of the new classification web.
Regards,
Frank
--
FrankHoellering - 14 Mar 2019
Yes that's fixing it. This should do as well:
return Foswiki::Plugins::JQueryPlugin::getIconService()->getIconUrlPath($icon);
--
MichaelDaum - 14 Mar 2019