[Koha-bugs] [Bug 27346] New: C4::XISBN warning on hash

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 5 15:49:15 CET 2021


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

            Bug ID: 27346
           Summary: C4::XISBN warning on hash
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Cataloging
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: fridolin.somers at biblibre.com
        QA Contact: testopia at bugs.koha-community.org
                CC: m.de.rooy at rijksmuseum.nl

When using ThingISBN alone you get a warning :

Failed Can't use string ("1") as a HASH ref while "strict refs" in use at
/home/koha/src/C4/XISBN.pm line 99.

sub get_xisbns {
    my ( $isbn, $biblionumber ) = @_;
    my ($response,$thing_response,$syndetics_response,$errors);
...
    $response->{isbn} = [ @{ $syndetics_response->{isbn} or [] }, @{
$thing_response->{isbn} or [] } ];

Vars $thing_response,$syndetics_response must be initialised as an hashref.
Or maybe rewrite a bit this code.

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


More information about the Koha-bugs mailing list