Bug 21900

Summary: intranet_catalog_biblio_enhancements_toolbar_button plugin hook broken
Product: Koha Reporter: Andrew Isherwood <bugzilla>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 20968    
Bug Blocks:    
Attachments: Bug 21900: Fix erroneous filter

Description Andrew Isherwood 2018-11-28 13:49:03 UTC
Commit 1a0172a253e5432e5eef862768aaacb3463501f2 broke the display of buttons provided by plugins making use of the intranet_catalog_biblio_enhancements_toolbar_button hook. The addition of the html filter breaks the ability of the browser to parse the HTML provided by the plugin, the $raw filter needs to be used instead.
Comment 1 Andrew Isherwood 2018-11-28 13:52:53 UTC
Created attachment 82700 [details] [review]
Bug 21900: Fix erroneous filter

Swap the filter from html to $raw. We need the browser to be able to
parse the HTML supplied by plugins.

Test plan:
- Apply patch
- Install plugin that uses the
intranet_catalog_biblio_enhancements_toolbar_button hook, currently only https://github.com/PTFS-Europe/koha-plugin-cla-check_permissions/releases
- View the /cgi-bin/koha/catalogue/detail.pl page for an record
=> TEST: Verify that the "CLA Check Permissions" button is displaying in
the record's tool bar
Comment 2 Andrew Isherwood 2018-11-29 08:43:13 UTC
Bug 21905 also addresses this problem and has a test plan involving the easier to test Kitchen Sink plugin. So I'm closing this one in favour of that one.

*** This bug has been marked as a duplicate of bug 21905 ***