[Koha-bugs] [Bug 11302] Template::output should deal with object

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 26 09:41:05 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11302

--- Comment #2 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 23154
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23154&action=edit
Bug 11302: Template::output should deal with objects

if a ref is not HASH or ARRAY, C4::Template::output assumes it is a
scalar. Which is wrong, it could be an object.

At least the member 'description' of the C4::Category object should be
encoded.

Test plan:
Before applying the patch
- translate a template for a language
- create a patron category with a no-ASCII character
- got the patron home page and select the translated language
- you should see a broken encoding
Apply the patch
- refresh the page
- all looks good now

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list