]> git.koha-community.org Git - koha.git/commit
Bug 11365: (follow-up) trim whitespace in the translate_card_element block
authorGalen Charlton <gmc@esilibrary.com>
Fri, 23 May 2014 14:46:54 +0000 (14:46 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 23 May 2014 14:46:54 +0000 (14:46 +0000)
commit41def6af1dc574cee0b88ce99a2af1d983809b1c
tree2bfd59e894bd01934f4354031b99eb24c00f12b1
parentb712a45deb8d3b72421d7a4bbf31055eca8ac65f
Bug 11365: (follow-up) trim whitespace in the translate_card_element block

Trim leading and trailing whitespace in the text generated
by the translate_card_element block to avoid generating
unescaped multi-line strings, which breaks the JavaScript

To test:

[1] Test actions in the patron card creator that generate
    JavaScript alerts, such as hitting the delete button
    without first selecting a batch or profile.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt