Item14828: Problem with Category.pm getIconUrl

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: ClassificationPlugin
Branches:
Reported By: FrankHoellering
Waiting For:
Last Change By: MichaelDaum
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

 
Topic revision: r3 - 02 May 2019, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy