[Bug 13775] New: software error when choosing authority via plugin
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 Bug ID: 13775 Summary: software error when choosing authority via plugin Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: critical Priority: P5 - low Component: Cataloging Assignee: gmcharlt@gmail.com Reporter: nengard@gmail.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl When cataloging if you use the authority chooser plugin you get the following error when clicking 'choose' Software error: Can't call method "field" on an undefined value at /home/nengard/kohaclone/authorities/blinddetail-biblio-search.pl line 82. My URL looks like this: cgi-bin/koha/authorities/blinddetail-biblio-search.pl?authid=948&index=tag_600_subfield_a_847208_166743&repet= -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Nicole, Which plugin are you talking about? There is no plugin linked to 600$a by default. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Looking at the code, it happens when the authority does not exist (authid=948 for you). Maybe it has been deleted but not removed from the Zebra index yet? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 Joonas Kylmälä <j.kylmala@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |j.kylmala@gmail.com --- Comment #3 from Joonas Kylmälä <j.kylmala@gmail.com> --- I get also similar error: Can't call method "subfields" on an undefined value at ~/kohaclone/authorities/blinddetail-biblio-search.pl line 88. First I edit marc record's field 648 -> chronological term, then I try to add there one by clicking a link on the left side of the field. From there it opens me to a new window: cgi-bin/koha/authorities/auth_finder.pl. In that window I click Create a new authority, I click on the authority creating fields randomly, I don't input there anything but the window puts there some randomly looking data itself, and after that I try to save the new authority and it gives the error. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Debug: It's because the field 148 is not filled # If 148 is not set, @fields = (); 82 my @fields = $record->field( $auth_type->{auth_tag_to_report} ); # Repet is never set, so $repet = 0 83 my $repet = ($query->param('repet') || 1) - 1; 84 my $field = $fields[$repet]; 85 86 # Get all values for each distinct subfield 87 my %subfields; if 148 is not set, boom here 88 for ( $field->subfields ) { -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #5 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Should we set 148 as mandatory for the CHRON_TERM auth type? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hm, sounds good to me! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13775 --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I can make the change, globally. Someone should tell me which fields should be mandatory for each authority type. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org