Bug 5236 Followup: items table information being keyed by biblionumber instead!
authorIan Walls <ian.walls@bywatersolutions.com>
Mon, 3 Oct 2011 14:45:59 +0000 (10:45 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 3 Oct 2011 19:54:40 +0000 (08:54 +1300)
commit37c48ccfb2b0893366676741a506e0243db49d40
treecb5cb45cb78d8c8d8bebb319536abf8c4079bae7
parent57155db21305264404f5afd2788233103d038cb6
Bug 5236 Followup: items table information being keyed by biblionumber instead!

This patch fixes an error with bugfix 5236; any item-table information in the PREDUE letter
was being parsed with biblionumber as the key, instead of itemnumber.  Unless itemnumber == biblionumber,
this will ALWAYS return the wrong information.

I've moved the item table parsing line to within the if ($itemnumber) conditional check, and replaced
the key to use the itemnumber instead of the biblionumber.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/cronjobs/advance_notices.pl