https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35989

Nick Clemens (kidclamp) <[email protected]> changed:

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

--- Comment #4 from Nick Clemens (kidclamp) <[email protected]> ---
Created attachment 166821
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166821&action=edit
Bug 35989: Stop geographic authority searches crashing

Currently when searching for a geographic authority record the search will fail
if the record has a heading in a 78X field. The system tries to do a regex
match against an undefined variable causing an error. This patch makes that
regex match conditional on the variable being defined to allow the search to
succeed.

Test plan:
1) Navigate to Authorities
2) In the search bar at the top of the page, click on the dropdown options and
in the 'Authority type' field, select 'Geographic Name'
3) Click search
4) You should have a list of authorities
5) Click on any authority record and then click edit and select to edit the
record
6) Click on the "7" button
7) Click on the green text next to the '781' field to get the list of fields
8) In field 'v' enter any string you like
9) Click save
10) Repeat steps 1-3, this time it should display an error message for an
Unmatched [ in regex
11) Apply patch
12) restart_all
13) Refresh the page, the results should show and the string you entered in the
'v' field should display on the record you edited

Signed-off-by: Nick Clemens <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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