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

Kyle M Hall <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29800|0                           |1
        is obsolete|                            |

--- Comment #5 from Kyle M Hall <[email protected]> ---
Created attachment 29824
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29824&action=edit
[PASSED QA] Bug 12593 - search facets die with regex error if biblio has square
brackets in fields

It's quite common to have [something] within facet data, and it produces
following error:

Unmatched [ in regex; marked by <-- HERE in m/^[ <-- HERE

This problem was intoduced in Bug 12151 but is trivial to fix.

Signed-off-by: Tomas Cohen Arazi <[email protected]>
Good catch.

To test:
- Created a bibliographic record, linked to an authority record (personal
name). Did a search that returned the author as a facet.
- Added a [ symbol to the author name.
- Repeated the search
=> FAIL: "Unmatched [ in regex; marked by <-- HERE in m/^[ <-- HERE"
- Apply the patch
- Retry the search
=> SUCCESS: No error, bracket shows correctly.

Passes koha-qa.pl too.

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to