[Bug 3821] New: Adding item with receive issue in serials subscription causes error
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3821 Summary: Adding item with receive issue in serials subscription causes error Product: Koha Version: rel_3_0 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: enhancement Priority: P5 Component: Serials AssignedTo: paul.poulain@biblibre.com ReportedBy: jwagner@ptfs.com Estimated Hours: 0.0 Change sponsored?: --- Running latest master Koha code as of November 30, 2009. If I configure a serial subscription to create an item for each issue, then receive issues, I get an error: substr outside of string at /home/koha/kohaclone/C4/Biblio.pm line 1725. The issue shows as received in the title record, but no item is created. If I turn off the option to create an item, there is no error. Line 1725 of Biblio.pm is my $ind2 = _default_ind_to_space( substr( @$indicator[$j], 1, 1 ) ); -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3821 --- Comment #1 from Jane Wagner <jwagner@ptfs.com> 2009-12-01 14:45:58 --- I asked about this on the IRC, and Henri-Damien Laurent replied: hdl_laptop jwagner: patch is on rel 3.0.x for default_ind_to_space should be cherry-picked back into master jwagner: this is owed to the substr and the fact that string in substr can be shorter than expected. (here indicators in item modification page is not meaningful) see c71c4bf9c5fddcb332e5c79e95ed67ff9bd95a24 on branch 3.0.x hope that helps and bfffa5 -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3821 Colin Campbell <colin.campbell@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |colin.campbell@ptfs- | |europe.com Priority|P5 |PATCH-Sent --- Comment #2 from Colin Campbell <colin.campbell@ptfs-europe.com> 2009-12-07 13:31:24 --- Serials receipt sends items with unset indicators to routine in biblio. Catch these and set a default value. Behaviour of the serials add item should be more like add item elsewhere. The 'Transform' routine in Biblio.pm needs to be looked at (wtp) it does a lot rather obscurely -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@kohaorg.ec2.liblime.com