[Bug 5212] New: Overdue_notices.pl grabbing wrong item information for parsing
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5212 Summary: Overdue_notices.pl grabbing wrong item information for parsing Change sponsored?: --- Product: Koha Version: rel_3_2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Notices AssignedTo: henridamien@koha-fr.org ReportedBy: ian.walls@bywatersolutions.com QAContact: koha-bugs@lists.koha-community.org Estimated Hours: 0.0 Overdue notices that make use of the <item>.... </item> feature to grab specific fields from biblio, biblioitems and items are getting the wrong item information pulled into them. This stems from the use of the biblionumber as the key to the items table. See the following code snippet from overdue_notices.pl: sub parse_letter { # FIXME: this code should probably be moved to C4::Letters:parseletter my $params = shift; ---Snip---- if ( $params->{'biblionumber'} ) { my $item_format = ''; PROCESS_ITEMS: while (scalar(@{$params->{'biblionumber'}}) > 0) { my $item = shift @{$params->{'biblionumber'}}; ---Snip---- $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblio', $item ); $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblioitems', $item ); $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'items', $item ); The same key value is used for all three fields. This could theoretically also be a problem for biblioitems, but this is highly unlikely in Koha 3.X unless local database changes were made. The params past to parseletter are in an array called @items, but they are biblionumbers, possibly leading to some of this confusion. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5212 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |major -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5212 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Status|NEW |ASSIGNED CC| |nengard@gmail.com --- Comment #1 from Nicole C. Engard <nengard@gmail.com> 2010-09-09 17:58:22 UTC --- I have signed off on Ian's patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5212 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|henridamien@koha-fr.org |ian.walls@bywatersolutions. | |com -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5212 --- Comment #2 from Nicole C. Engard <nengard@gmail.com> 2010-09-09 17:59:06 UTC --- Created attachment 2612 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=2612 patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5212 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Ian Walls <ian.walls@bywatersolutions.com> 2010-11-23 17:08:40 UTC --- The patch submitted here is essentially re-implemented with the fix for bug 5381. Marking this bug as a duplicate. *** This bug has been marked as a duplicate of bug 5381 *** -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org