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

Fridolin Somers <[email protected]> changed:

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

--- Comment #3 from Fridolin Somers <[email protected]> ---
Created attachment 145703
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145703&action=edit
Bug 23380: GuessAuthTypeCode should check authority type exists

The method GuessAuthTypeCode is used when importing from batch or z3950/SRU to
find the local authority type depending on MARC flavour and authority record
fields.
This method should check that found type is configured.
Otherwise it can generate software errors when type code is used to fetch
Koha::Authority::Type.

Test plan :
1) Delete an authority type, ie NP
2) Connect to a z3950/SRU authority server
3) Look for authorities of this type
4) Import an authority
5) Without patch you get error : Can't call method "auth_tag_to_report" on an
undefined value at /home/koha/src/C4/AuthoritiesMarc.pm line 757.
6) With patch you see record edition and in logs "Authority type NP not
configured"

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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