https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36917
Nick Clemens (kidclamp) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167023|0 |1 is obsolete| | --- Comment #7 from Nick Clemens (kidclamp) <[email protected]> --- Created attachment 167025 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167025&action=edit Bug 36917: Remove some warnings from t/db_dependent/Authority/Merge.t Cannot determine authority type for record: 1709 at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 589. Use of uninitialized value $subfields in pattern match (m//) at /kohadevbox/koha/C4/Heading/MARC21.pm line 412. Use of uninitialized value $subfields in pattern match (m//) at /kohadevbox/koha/C4/Heading/MARC21.pm line 448. This change removes the 2 "Use of uninitialized value $subfields in pattern match (m//)" warnings The warnings are gnerated because the subfields for headings are hardcoded variables in C4::Heading::MARC21 for any genuine authority record we should receive the correct list of subfields. The tests in this case are mocking a new authtype, and so do not find the correct subfields. Skipping the generation here silences the warnings and will prevent user defined types from throwing errors as well. NOTE: Koha allows the user to define their own authority types, however, we have various features hardcoded that will prevent them from working as expected WNC amended commit message Signed-off-by: Marcel de Rooy <[email protected]> Signed-off-by: Nick Clemens <[email protected]> -- 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/
