[Koha-bugs] [Bug 9811] Patrons search improvements

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 18 13:47:23 CEST 2013


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

--- Comment #58 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 21172
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21172&action=edit
Bug 9811 - multilines notes brakes JSON

In new patron search feature, the search results are fetched using Ajax and
returned in JSON format.
The JSON is created by TT using
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt.
One of the fields is the borrower notes. When this notes contains several
lines, the JSON is broken.

This patch uses TT fileters to consert in notes linefeeds into HTML line break
(html_line_break) and then remove linefeeds (collapse).

Test plan :
- perform a member search that does not return a borrower with a circ note
- edit one of the borrowers returned by this search
- enter serveral lines of text in "Circulation note" and save
- reperform the member search
=> circ note is well displayed on several lines

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


More information about the Koha-bugs mailing list