Bug 21905: Plugin hook intranet_catalog_biblio_enhancements_toolbar_button incorrectl...
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 28 Nov 2018 18:41:53 +0000 (13:41 -0500)
committerJesse Maseto <jesse@bywatersolution.com>
Wed, 19 Dec 2018 11:56:27 +0000 (11:56 +0000)
commita1d3c8d83b64d870dcf1a8f4ef418765c3effa7e
tree97ee736c07d726fdf103327a8bdced338be26d9d
parentf0b6ec9e3934badb1a9b6c8a165a3a4012d83186
Bug 21905: Plugin hook intranet_catalog_biblio_enhancements_toolbar_button incorrectly filtered

The new plugin hook intranet_catalog_biblio_enhancements_toolbar_button is rendered useless due to the outputted html being escaped using the html filter. It should be using the raw filter instead.

Test Plan:
1) Enable plugins
2) Download and install the latest version of the Kitchen Sink plugin
   https://github.com/bywatersolutions/koha-plugin-kitchen-sink/releases/download/v2.1.21/koha-plugin-kitchen-sink-v2.1.21.kpz
3) Browse to catalogue/detail.pl for a record
4) Note you see the raw html of the plugin output in the toolbar
5) Apply this patch
6) Restart all the things
7) Reload the page
8) Note the html is now correctly rendered as a button

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ed22c5fc0f65cc3736a8dbabb159b6b4b9b2f7c4)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 55e807c287f2da9f5c031847ccecc7a9554f60d7)

Signed-off-by: Jesse Maseto <jesse@bywatersolution.com>
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc